|
@@ -0,0 +1,27 @@
|
|
|
+<?xml version="1.0"?>
|
|
|
+<openerp>
|
|
|
+ <data>
|
|
|
+ <record id="mrp_production_form_view" model="ir.ui.view">
|
|
|
+ <field name="name">eirusoft.mrp.production.form</field>
|
|
|
+ <field name="model">mrp.production</field>
|
|
|
+ <field name="type">form</field>
|
|
|
+ <field name="inherit_id" ref="mrp.mrp_production_form_view"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <xpath expr="//group[@string='Products to Consume']/field" position="attributes">
|
|
|
+ <attribute name="context">{'default_location_id':location_src_id, 'default_location_dest_id': %(stock.location_production)d, 'default_name':'Unplanned consumption' }</attribute>
|
|
|
+ </xpath>
|
|
|
+ <xpath expr="//group[@string='Products to Consume']/field/tree" position="attributes">
|
|
|
+ <attribute name="editable">bottom</attribute>
|
|
|
+ </xpath>
|
|
|
+ <xpath expr="//group[@string='Products to Consume']/field/tree/field[@name='state']" position="after">
|
|
|
+ <field name="name" invisible="1"/>
|
|
|
+ <field name="location_id" invisible="1"/>
|
|
|
+ <field name="location_dest_id" invisible="1"/>
|
|
|
+ </xpath>
|
|
|
+ <xpath expr="//group[@string='Products to Consume']/field/tree/field[@name='product_id']" position="replace">
|
|
|
+ <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id)" />
|
|
|
+ </xpath>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+ </data>
|
|
|
+</openerp>
|