designed a module mrp_subproduct, that adds a tab on the mrp.bom
[odoo/odoo.git] / addons / mrp_subproduct / mrp_subproduct_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4                 <record id="mrp_subproduct_view" model="ir.ui.view">
5             <field name="name">mrp.bom.sub.product</field>
6             <field name="model">mrp.bom</field>
7             <field name="inherit_id" ref="mrp.mrp_bom_form_view"/>
8             <field name="type">form</field>
9             <field name="arch" type="xml">
10              <notebook>
11                 <page string="sub products" position="inside">
12                         <field colspan="4" name="sub_products" nolabel="1" widget="one2many_list">
13                                 <tree string="sub products"  editable="top">
14                                         <field name="product_id" on_change="onchange_product_id(product_id)"/>
15                                         <field name="product_uom"/>
16                                 <field name="product_qty"/>
17                         </tree>
18                         <form string="sub products">
19                                 <field name="product_id" on_change="onchange_product_id(product_id)"/>
20                                         <field name="product_uom"/>
21                                 <field name="product_qty"/>
22                         </form>
23                     </field>
24                 </page>
25                         </notebook>
26             </field>
27         </record>
28   </data>
29 </openerp>