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'],
|
||||
"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
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
##############################################################################
|
||||
#
|
||||
# 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
|
||||
# it under the terms of the GNU General Public License as
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
from openerp.osv import fields, orm
|
||||
|
||||
|
||||
class mrp_bom(orm.Model):
|
||||
_inherit = 'mrp.bom'
|
||||
_columns = {
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
<?xml version="1.0" ?>
|
||||
<openerp>
|
||||
<data>
|
||||
<delete model="ir.actions.report.xml" search="[('name', '=', 'bom.structure')]" />
|
||||
<report auto="True"
|
||||
header="False"
|
||||
id="report_industrial_design_bom_structure"
|
||||
model="mrp.bom"
|
||||
name="industrialdesign.bom.structure"
|
||||
rml="mrp_industrial_design_bom/report/bom_structure_industrial_design.rml"
|
||||
string="BOM Structure"/>
|
||||
|
||||
<record model="ir.actions.report.xml" id="mrp.report_bom_structure">
|
||||
<field name="report_file">mrp_industrial_design_bom/report/bom_structure_industrial_design.rml</field>
|
||||
<field name="report_rml">mrp_industrial_design_bom/report/bom_structure_industrial_design.rml</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="mrp_bom_form_view_inherit">
|
||||
<field name="name">mrp.bom.form.inherit</field>
|
||||
<field name="model">mrp.bom</field>
|
||||
|
||||
Reference in New Issue
Block a user