flectra/addons/mrp/views/stock_scrap_views.xml

26 lines
1.2 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-01-16 11:34:37 +01:00
<flectra>
<record id="stock_scrap_view_form2_mrp_inherit_mrp" model="ir.ui.view">
<field name="name">stock.scrap.view.form2.inherit.mrp</field>
<field name="model">stock.scrap</field>
<field name="inherit_id" ref="stock.stock_scrap_form_view2"/>
<field name="arch" type="xml">
<field name="owner_id" position="after">
<field name="workorder_id" attrs="{'invisible': [('workorder_id', '=', False)]}"/>
<field name="production_id" attrs="{'invisible': [('production_id', '=', False)]}"/>
</field>
</field>
</record>
<record id="stock_scrap_view_form_mrp_inherit_mrp" model="ir.ui.view">
<field name="name">stock.scrap.view.form.inherit.mrp</field>
<field name="model">stock.scrap</field>
<field name="inherit_id" ref="stock.stock_scrap_form_view"/>
<field name="arch" type="xml">
<field name="owner_id" position="after">
<field name="workorder_id" attrs="{'invisible': [('workorder_id', '=', False)]}"/>
<field name="production_id" attrs="{'invisible': [('production_id', '=', False)]}"/>
</field>
</field>
</record>
2018-01-16 11:34:37 +01:00
</flectra>