Merge lp:~savoirfairelinux-openerp/openerp-manufacturing/dont-delete-report into lp:openerp-manufacturing

Proposed by Joao Alfredo Gama Batista
Status: Merged
Merged at revision: 6
Proposed branch: lp:~savoirfairelinux-openerp/openerp-manufacturing/dont-delete-report
Merge into: lp:openerp-manufacturing
Diff against target: 73 lines (+11/-13)
3 files modified
mrp_industrial_design_bom/__openerp__.py (+3/-1)
mrp_industrial_design_bom/industrial_design.py (+4/-3)
mrp_industrial_design_bom/mrp_industrial_design.xml (+4/-9)
To merge this branch: bzr merge lp:~savoirfairelinux-openerp/openerp-manufacturing/dont-delete-report
Reviewer Review Type Date Requested Status
Niels Huylebroeck (community) Approve
Pedro Manuel Baeza code review and test Approve
Maxime Chambreuil (http://www.savoirfairelinux.com) code review Approve
Review via email: mp+191493@code.launchpad.net

Description of the change

Don't delete the original report id, just update the rml location.

To post a comment you must log in.
Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) :
review: Approve (code review)
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Everything is OK.

Thank you.

Regards.

review: Approve (code review and test)
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Everything is OK.

Thank you.

Regards.

review: Approve (code review and test)
Revision history for this message
Niels Huylebroeck (red15) wrote :

lgtm, a replacement of certain ir.actions.report.xml fields is certainly better than a delete (cause delete with such a fuzzy search could easily target the wrong action + prevents the module on it's own to update)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'mrp_industrial_design_bom/__openerp__.py'
--- mrp_industrial_design_bom/__openerp__.py 2013-04-08 15:44:53 +0000
+++ mrp_industrial_design_bom/__openerp__.py 2013-10-16 19:58:45 +0000
@@ -30,7 +30,9 @@
30 'depends' : ['mrp'],30 'depends' : ['mrp'],
31 "data" : ['mrp_industrial_design.xml'],31 "data" : ['mrp_industrial_design.xml'],
32 'description': """32 'description': """
33Add the fields 'Bubble Number' and 'RefDes' (reference description) to a component in BoM view.33This module adds the fields 'Bubble Number' and 'RefDes' (reference description) to a component in BoM view.
34
35It also point the BOM Structure report to a new version that uses the new fields.
34""",36""",
35 'auto_install': False,37 'auto_install': False,
36 'installable': True38 'installable': True
3739
=== modified file 'mrp_industrial_design_bom/industrial_design.py'
--- mrp_industrial_design_bom/industrial_design.py 2013-04-08 15:44:53 +0000
+++ mrp_industrial_design_bom/industrial_design.py 2013-10-16 19:58:45 +0000
@@ -2,7 +2,7 @@
2##############################################################################2##############################################################################
3# 3#
4# OpenERP, Open Source Management Solution4# OpenERP, Open Source Management Solution
5# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).5# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
6#6#
7# This program is free software: you can redistribute it and/or modify7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as8# it under the terms of the GNU General Public License as
@@ -15,18 +15,19 @@
15# GNU General Public License for more details.15# GNU General Public License for more details.
16#16#
17# You should have received a copy of the GNU General Public License17# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>. 18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, orm22from openerp.osv import fields, orm
2323
24
24class mrp_bom(orm.Model):25class mrp_bom(orm.Model):
25 _inherit = 'mrp.bom'26 _inherit = 'mrp.bom'
26 _columns = {27 _columns = {
27 'bubble_number': fields.integer('No'),28 'bubble_number': fields.integer('No'),
28 'refdes': fields.text('Notes'),29 'refdes': fields.text('Notes'),
29 }30 }
30 31
31 _order = "bubble_number"32 _order = "bubble_number"
32# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:33# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
3334
=== modified file 'mrp_industrial_design_bom/mrp_industrial_design.xml'
--- mrp_industrial_design_bom/mrp_industrial_design.xml 2013-04-26 13:44:37 +0000
+++ mrp_industrial_design_bom/mrp_industrial_design.xml 2013-10-16 19:58:45 +0000
@@ -1,15 +1,10 @@
1<?xml version="1.0" ?>1<?xml version="1.0" ?>
2<openerp>2<openerp>
3 <data>3 <data>
4 <delete model="ir.actions.report.xml" search="[('name', '=', 'bom.structure')]" />4 <record model="ir.actions.report.xml" id="mrp.report_bom_structure">
5 <report auto="True" 5 <field name="report_file">mrp_industrial_design_bom/report/bom_structure_industrial_design.rml</field>
6 header="False"6 <field name="report_rml">mrp_industrial_design_bom/report/bom_structure_industrial_design.rml</field>
7 id="report_industrial_design_bom_structure"7 </record>
8 model="mrp.bom"
9 name="industrialdesign.bom.structure"
10 rml="mrp_industrial_design_bom/report/bom_structure_industrial_design.rml"
11 string="BOM Structure"/>
12
13 <record model="ir.ui.view" id="mrp_bom_form_view_inherit">8 <record model="ir.ui.view" id="mrp_bom_form_view_inherit">
14 <field name="name">mrp.bom.form.inherit</field>9 <field name="name">mrp.bom.form.inherit</field>
15 <field name="model">mrp.bom</field>10 <field name="model">mrp.bom</field>