You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
2.4 KiB
53 lines
2.4 KiB
<?xml version = "1.0" encoding = "UTF-8" ?>
|
|
<odoo>
|
|
<!-- Inherited mrp unbuild form view to add Catch Weight fields-->
|
|
<record id="mrp_unbuild_form_view" model="ir.ui.view">
|
|
<field name="name">mrp.unbuild.view.form.inherit.cw.mrp</field>
|
|
<field name="model">mrp.unbuild</field>
|
|
<field name="inherit_id" ref="mrp.mrp_unbuild_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='bom_id']"
|
|
position="after">
|
|
<field name="toggle_cw" invisible="1"/>
|
|
<field name="category_id" invisible="1"/>
|
|
<label for="cw_qty" string="CW-Quantity"
|
|
attrs="{'invisible':[('toggle_cw', '=', False)],
|
|
'required':[('toggle_cw', '=', True)]}"/>
|
|
<div class="o_row"
|
|
attrs="{'invisible':[('toggle_cw', '=', False)],
|
|
'required':[('toggle_cw', '=', True)]}">
|
|
<field name="cw_qty"/>
|
|
<field name="cw_uom_id"
|
|
options="{'no_open':True,'no_create':True}"/>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<!-- Inherited mrp unbuild simplified form view to add Catch Weight
|
|
fields-->
|
|
<record id="mrp_unbuild_form_view_simplified" model="ir.ui.view">
|
|
<field name="name">mrp.unbuild.view.form.inherit.cw.mrp
|
|
</field>
|
|
<field name="model">mrp.unbuild</field>
|
|
<field name="inherit_id"
|
|
ref="mrp.mrp_unbuild_form_view_simplified"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='bom_id']"
|
|
position="after">
|
|
<field name="toggle_cw" invisible="1"/>
|
|
<field name="category_id" invisible="1"/>
|
|
<label for="cw_qty" string="CW Quantity"
|
|
attrs="{'invisible':[('toggle_cw', '=', False)],
|
|
'required':[('toggle_cw', '=', True)]}"/>
|
|
<div class="o_row"
|
|
attrs="{'invisible':[('toggle_cw', '=', False)],
|
|
'readonly':[('state', '=', 'done')],
|
|
'required':[('toggle_cw', '=', True)]}">
|
|
<field name="cw_qty"/>
|
|
<field name="cw_uom_id"
|
|
options="{'no_open':True,'no_create':True}"/>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|