[IMP] stock: Stock partial move and partial picking wizard select only production lots for the product on that line

bzr revid: sbh@tinyerp.com-20100929061401-3c13j05vvprjwk5g
This commit is contained in:
sbh (Open ERP)
2010-09-29 11:44:01 +05:30
parent 3da0c45f28
commit f44295b297
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -104,8 +104,8 @@ class stock_partial_move(osv.osv_memory):
<field name="move%s_product_id" nolabel="1"/>
<field name="move%s_product_qty" string="Qty" />
<field name="move%s_product_uom" nolabel="1" />
<field name="move%s_prodlot_id" groups="base.group_extended" />
"""%(m.id, m.id, m.id,m.id)
<field name="move%s_prodlot_id" domain="[('product_id','=',move%s_product_id)]" groups="base.group_extended" />
"""%(m.id, m.id, m.id,m.id,m.id)
if (m.picking_id.type == 'in') and (m.product_id.cost_method == 'average'):
_moves_fields.update({
'move%s_product_price'%(m.id) : {
+2 -2
View File
@@ -105,8 +105,8 @@ class stock_partial_picking(osv.osv_memory):
<field name="move%s_product_id" nolabel="1"/>
<field name="move%s_product_qty" string="Qty" />
<field name="move%s_product_uom" nolabel="1" />
<field name="move%s_prodlot_id" groups="base.group_extended" />
"""%(m.id, m.id, m.id, m.id)
<field name="move%s_prodlot_id" domain="[('product_id','=',move%s_product_id)]" groups="base.group_extended" />
"""%(m.id, m.id, m.id, m.id,m.id)
if (m.product_id.cost_method == 'average'):
_moves_fields.update({
'move%s_product_price'%(m.id) : {