1 <?xml version="1.0" encoding="utf-8"?>
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="arch" type="xml">
9 <notebook position="inside">
10 <page string="Byproducts" position="inside">
11 <field name="sub_products">
12 <tree string="Byproducts" editable="top">
13 <field name="product_id" on_change="onchange_product_id(product_id)"/>
14 <field name="product_uom" on_change="onchange_uom(product_id, product_uom)" groups="product.group_uom"/>
15 <field name="product_qty"/>
16 <field name="subproduct_type"/>
18 <form string="Byproducts">
19 <field name="product_id" on_change="onchange_product_id(product_id)"/>
20 <field name="product_uom" on_change="onchange_uom(product_id, product_uom)" groups="product.group_uom"/>
21 <field name="product_qty"/>
22 <field name="subproduct_type"/>