mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] Don't delete original report id, just overwrite the report location
This commit is contained in:
@@ -30,7 +30,9 @@
|
|||||||
'depends' : ['mrp'],
|
'depends' : ['mrp'],
|
||||||
"data" : ['mrp_industrial_design.xml'],
|
"data" : ['mrp_industrial_design.xml'],
|
||||||
'description': """
|
'description': """
|
||||||
Add the fields 'Bubble Number' and 'RefDes' (reference description) to a component in BoM view.
|
This module adds the fields 'Bubble Number' and 'RefDes' (reference description) to a component in BoM view.
|
||||||
|
|
||||||
|
It also point the BOM Structure report to a new version that uses the new fields.
|
||||||
""",
|
""",
|
||||||
'auto_install': False,
|
'auto_install': False,
|
||||||
'installable': True
|
'installable': True
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
# OpenERP, Open Source Management Solution
|
# OpenERP, Open Source Management Solution
|
||||||
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
|
# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as
|
# it under the terms of the GNU General Public License as
|
||||||
@@ -15,18 +15,19 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
from openerp.osv import fields, orm
|
from openerp.osv import fields, orm
|
||||||
|
|
||||||
|
|
||||||
class mrp_bom(orm.Model):
|
class mrp_bom(orm.Model):
|
||||||
_inherit = 'mrp.bom'
|
_inherit = 'mrp.bom'
|
||||||
_columns = {
|
_columns = {
|
||||||
'bubble_number': fields.integer('No'),
|
'bubble_number': fields.integer('No'),
|
||||||
'refdes': fields.text('Notes'),
|
'refdes': fields.text('Notes'),
|
||||||
}
|
}
|
||||||
|
|
||||||
_order = "bubble_number"
|
_order = "bubble_number"
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||||
|
|||||||
@@ -1,15 +1,10 @@
|
|||||||
<?xml version="1.0" ?>
|
<?xml version="1.0" ?>
|
||||||
<openerp>
|
<openerp>
|
||||||
<data>
|
<data>
|
||||||
<delete model="ir.actions.report.xml" search="[('name', '=', 'bom.structure')]" />
|
<record model="ir.actions.report.xml" id="mrp.report_bom_structure">
|
||||||
<report auto="True"
|
<field name="report_file">mrp_industrial_design_bom/report/bom_structure_industrial_design.rml</field>
|
||||||
header="False"
|
<field name="report_rml">mrp_industrial_design_bom/report/bom_structure_industrial_design.rml</field>
|
||||||
id="report_industrial_design_bom_structure"
|
</record>
|
||||||
model="mrp.bom"
|
|
||||||
name="industrialdesign.bom.structure"
|
|
||||||
rml="mrp_industrial_design_bom/report/bom_structure_industrial_design.rml"
|
|
||||||
string="BOM Structure"/>
|
|
||||||
|
|
||||||
<record model="ir.ui.view" id="mrp_bom_form_view_inherit">
|
<record model="ir.ui.view" id="mrp_bom_form_view_inherit">
|
||||||
<field name="name">mrp.bom.form.inherit</field>
|
<field name="name">mrp.bom.form.inherit</field>
|
||||||
<field name="model">mrp.bom</field>
|
<field name="model">mrp.bom</field>
|
||||||
|
|||||||
Reference in New Issue
Block a user