diff --git a/mrp_industrial_design_bom/__openerp__.py b/mrp_industrial_design_bom/__openerp__.py index 03a8dced8..ebd2995f6 100644 --- a/mrp_industrial_design_bom/__openerp__.py +++ b/mrp_industrial_design_bom/__openerp__.py @@ -30,7 +30,9 @@ 'depends' : ['mrp'], "data" : ['mrp_industrial_design.xml'], '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, 'installable': True diff --git a/mrp_industrial_design_bom/industrial_design.py b/mrp_industrial_design_bom/industrial_design.py index 43fad49c4..7aa4c555c 100644 --- a/mrp_industrial_design_bom/industrial_design.py +++ b/mrp_industrial_design_bom/industrial_design.py @@ -2,7 +2,7 @@ ############################################################################## # # OpenERP, Open Source Management Solution -# Copyright (C) 2010 Savoir-faire Linux (). +# Copyright (C) 2013 Savoir-faire Linux (). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as @@ -15,18 +15,19 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ############################################################################## from openerp.osv import fields, orm + class mrp_bom(orm.Model): _inherit = 'mrp.bom' _columns = { 'bubble_number': fields.integer('No'), 'refdes': fields.text('Notes'), } - + _order = "bubble_number" # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/mrp_industrial_design_bom/mrp_industrial_design.xml b/mrp_industrial_design_bom/mrp_industrial_design.xml index 54c8c74fe..bb3e879d0 100644 --- a/mrp_industrial_design_bom/mrp_industrial_design.xml +++ b/mrp_industrial_design_bom/mrp_industrial_design.xml @@ -1,15 +1,10 @@ - - - + + mrp_industrial_design_bom/report/bom_structure_industrial_design.rml + mrp_industrial_design_bom/report/bom_structure_industrial_design.rml + mrp.bom.form.inherit mrp.bom