[FIX] mrp: removed empty files and barcode controller value set to path in order to be able to receive URL

bzr revid: sle@openerp.com-20140224151944-dqi63kjvyejp6xja
This commit is contained in:
Simon Lejeune 2014-02-24 16:19:44 +01:00
parent 901172a194
commit d64c4a3f17
5 changed files with 1 additions and 34 deletions

View File

@ -69,7 +69,6 @@ Dashboard / Reports for MRP will include:
'process/service_product_process.xml',
'process/procurement_process.xml',
'report/mrp_report_view.xml',
'report/mrp_production_order_view.xml',
'board_manufacturing_view.xml',
'res_config_view.xml',

View File

@ -23,7 +23,6 @@ import price
import workcenter_load
import bom_structure
import mrp_report
import mrp_production_order
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -1,24 +0,0 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
</data>
</openerp>

View File

@ -463,7 +463,7 @@ class Report(http.Controller):
merged.close()
return content
@http.route(['/report/barcode', '/report/barcode/<type>/<value>'], type='http', auth="user")
@http.route(['/report/barcode', '/report/barcode/<type>/<path:value>'], type='http', auth="user")
def barcode(self, type, value, width=300, height=50):
"""Contoller able to render barcode images thanks to reportlab.
Samples: