[FIX]Resolved traceback on moving to the previous record from serial numbers in Trace...
[odoo/odoo.git] / addons / mrp_byproduct / mrp_byproduct_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="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"/>
17                          </tree>
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"/>
23                          </form>
24                     </field>
25                 </page>
26             </notebook>
27             </field>
28         </record>
29   </data>
30 </openerp>