2010-02-24 08:17:06 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Produce -->
|
|
|
|
|
2012-06-09 15:08:55 +00:00
|
|
|
<record id="view_mrp_product_produce_wizard" model="ir.ui.view">
|
2010-02-24 08:17:06 +00:00
|
|
|
<field name="name">MRP Product Produce</field>
|
|
|
|
<field name="model">mrp.product.produce</field>
|
|
|
|
<field name="arch" type="xml">
|
2014-06-12 07:09:59 +00:00
|
|
|
<form string="Produce">
|
2012-06-29 09:32:56 +00:00
|
|
|
<group string="Produce">
|
2012-06-20 07:37:12 +00:00
|
|
|
<field name="mode"/>
|
2014-01-16 17:48:00 +00:00
|
|
|
<field name="product_qty" colspan="2" on_change="on_change_qty(product_qty, consume_lines, context)"/>
|
2014-01-17 16:42:32 +00:00
|
|
|
<field name="product_id" invisible="1"/>
|
|
|
|
<field name="track_production" invisible="1"/>
|
2014-01-16 17:48:00 +00:00
|
|
|
<field name="lot_id" domain="[('product_id', '=', product_id)]"
|
|
|
|
context="{'default_product_id':product_id}"
|
2014-01-20 16:28:28 +00:00
|
|
|
attrs="{'required': [('track_production', '=', True), ('mode', '=', 'consume_produce')]}"
|
2014-06-03 07:21:57 +00:00
|
|
|
groups="stock.group_production_lot"/>
|
2014-01-16 17:48:00 +00:00
|
|
|
</group>
|
|
|
|
<group string="To Consume">
|
2014-06-17 09:47:53 +00:00
|
|
|
<field name="consume_lines" nolabel="1">
|
2014-01-16 17:48:00 +00:00
|
|
|
<tree string="Consume Lines" editable="top">
|
|
|
|
<field name="product_id"/>
|
|
|
|
<field name="product_qty"/>
|
|
|
|
<field name="lot_id" domain="[('product_id', '=', product_id)]"
|
|
|
|
context="{'default_product_id':product_id}"
|
2014-06-03 07:21:57 +00:00
|
|
|
groups="stock.group_production_lot"/>
|
2014-01-16 17:48:00 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</group>
|
2012-07-10 16:40:11 +00:00
|
|
|
<footer>
|
|
|
|
<button name="do_produce" type="object" string="Confirm" class="oe_highlight"/>
|
|
|
|
or
|
|
|
|
<button string="Cancel" class="oe_link" special="cancel" />
|
|
|
|
</footer>
|
2010-02-24 08:17:06 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="act_mrp_product_produce" model="ir.actions.act_window">
|
|
|
|
<field name="name">Produce</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">mrp.product.produce</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">form</field>
|
|
|
|
<field name="target">new</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
2012-06-09 15:08:55 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|