[IMP] mrp: Production lot field should take product from move line when you create new record.

bzr revid: uco@tinyerp.com-20101014113437-4qaczxhh2gypvcnb
This commit is contained in:
uco (OpenERP) 2010-10-14 17:04:37 +05:30
parent 5c5b66d70c
commit e3ec9871a2
1 changed files with 2 additions and 2 deletions

View File

@ -609,7 +609,7 @@
<field name="product_qty" readonly="1" string="Qty"/>
<field name="product_uom" readonly="1" string="UOM" widget="selection"/>
<field name="location_dest_id" readonly="1" string="Destination Loc." widget="selection"/>
<field name="prodlot_id" />
<field name="prodlot_id" context="{'product_id': product_id}"/>
<field name="state" invisible="1"/>
<field name="scrapped" invisible="1"/>
<button
@ -663,7 +663,7 @@
<field name="product_qty" readonly="1" string="Qty"/>
<field name="product_uom" readonly="1" string="UOM" widget="selection"/>
<field name="location_dest_id" readonly="1" string="Destination Loc." widget="selection"/>
<field name="prodlot_id" />
<field name="prodlot_id" context="{'product_id': product_id}"/>
<field name="scrapped" invisible="1"/>
<field name="state" invisible="1"/>
<button name="%(stock.track_line)d"