MRP production form: move src/dest loc to the top

This commit is contained in:
Alexis de Lattre
2018-10-26 15:46:17 +02:00
parent 806b1b4a86
commit 087bb1fde2

View File

@@ -13,6 +13,12 @@
<field name="model">mrp.production</field> <field name="model">mrp.production</field>
<field name="inherit_id" ref="mrp.mrp_production_form_view"/> <field name="inherit_id" ref="mrp.mrp_production_form_view"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//page/group/group[@groups='stock.group_stock_multi_locations']/field[@name='location_src_id']" position="replace"/>
<xpath expr="//page/group/group[@groups='stock.group_stock_multi_locations']/field[@name='location_dest_id']" position="replace"/>
<field name="routing_id" position="after">
<field name="location_src_id" domain="[('usage','=','internal')]" attrs="{'readonly': [('has_moves', '=', True)]}" groups="stock.group_stock_multi_locations"/>
<field name="location_dest_id" domain="[('usage','=','internal')]" attrs="{'readonly': [('has_moves', '=', True)]}" groups="stock.group_stock_multi_locations"/>
</field>
<field name="availability" position="after"> <field name="availability" position="after">
<field name="date_start"/> <field name="date_start"/>
<field name="date_finished"/> <field name="date_finished"/>