[IMP] mrp: miscalenous tab no more in debug mode

This commit is contained in:
Arnold Moyaux
2018-11-27 11:57:44 +00:00
parent 3bb3e6a530
commit d76048c003
+7 -7
View File
@@ -149,17 +149,17 @@
Use the Produce button or process the work orders to create some finished products.
</p>
</page>
<page string="Miscellaneous" groups="stock.group_stock_multi_locations, base.group_no_one">
<page string="Miscellaneous">
<group>
<group groups="stock.group_stock_multi_locations">
<field name="picking_type_id" domain="[('code', '=', 'mrp_operation')]" attrs="{'readonly': [('has_moves', '=', True)]}"/>
<field name="location_src_id" domain="[('usage','=','internal')]" attrs="{'readonly': [('has_moves', '=', True)]}"/>
<field name="location_dest_id" domain="[('usage','=','internal')]" attrs="{'readonly': [('has_moves', '=', True)]}"/>
</group>
<group>
<field name="availability" groups="base.group_no_one"/>
<field name="picking_type_id" domain="[('code', '=', 'mrp_operation')]" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
<field name="location_src_id" domain="[('usage','=','internal')]" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
<field name="location_dest_id" domain="[('usage','=','internal')]" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
</group>
</group>
<group>
<field name="reservation_state"/>
</group>
</page>
</notebook>
</sheet>