[MIG] mrp_bom_component_menu: Migration to 12.0

This commit is contained in:
Ruben Dario Bravo
2019-04-15 09:34:46 -04:00
committed by Florian da Costa
parent 9fc7c45cf4
commit 09841229c5
2 changed files with 45 additions and 10 deletions

View File

@@ -1,9 +1,10 @@
# Copyright 2017 Eficent Business and IT Consulting Services, S.L.
# (<http://www.eficent.com>)
# Copyright 2019 Rubén Bravo <rubenred18@gmail.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "MRP BOM Component Menu",
"version": "11.0.1.0.0",
"version": "12.0.1.0.0",
"category": "Manufacturing",
"website": "https://github.com/OCA/manufacture",
"author": "Eficent,"

View File

@@ -4,27 +4,61 @@
<odoo>
<record id="mrp_bom_line_tree_view" model="ir.ui.view">
<field name="name">mrp.bom.line.tree.view</field>
<field name="model">mrp.bom.line</field>
<field name="arch" type="xml">
<tree string="Components">
<field name="bom_id" />
<field name="product_id"/>
<field name="product_qty"/>
<field name="routing_id"/>
</tree>
</field>
</record>
<record id="mrp_bom_form_action2" model="ir.actions.act_window">
<field name="name">Bill of Material Components</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.bom.line</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" eval="False"/>
<field name="view_id" eval="ref('mrp_bom_line_tree_view')"/>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a component to a bill of material.
</p><p>
Bills of materials components are components and by-products
used to create master bills of materials. Use this menu to
search in which BoM a specific component is used.
</p>
<p class="oe_view_nocontent_create">
Click to add a component to a bill of material.
</p>
<p>
Bills of materials components are components and by-products
used to create master bills of materials. Use this menu to
search in which BoM a specific component is used.
</p>
</field>
</record>
<record id="mrp_bom_line_view_filter" model="ir.ui.view">
<field name="name">mrp.bom.line.view.filter</field>
<field name="model">mrp.bom.line</field>
<field name="arch" type="xml">
<search string="Search Bill Of Material Components">
<field name="bom_id"/>
<field name="product_id"/>
<group expand="0" string="Group By...">
<filter name="bom" string="Bill Of Material" context="{'group_by':'bom_id'}"/>
<filter name="product" string="Product" context="{'group_by':'product_id'}"/>
<filter name="uom" string='Default Unit of Measure' context="{'group_by' : 'product_uom_id'}"/>
<filter name="Routings" string="Routings" context="{'group_by':'routing_id'}"/>
</group>
</search>
</field>
</record>
<menuitem
action="mrp_bom_form_action2"
id="menu_mrp_bom_form_action2"
parent="mrp.menu_mrp_bom"/>
parent="mrp.menu_mrp_bom"
sequence="14"
/>
</odoo>