[FIX] Stock : Check on production lot corrected for move
lp bug: https://launchpad.net/bugs/582823 fixed bzr revid: jvo@tinyerp.com-20100524104014-1xbfhkhmx7yc38tr
This commit is contained in:
committed by
Jay (Open ERP)
parent
d07ce6d61b
commit
a5bdbbb732
@@ -1205,7 +1205,7 @@ class stock_move(osv.osv):
|
||||
|
||||
def _check_product_lot(self, cr, uid, ids):
|
||||
for move in self.browse(cr, uid, ids):
|
||||
if move.prodlot_id and (move.prodlot_id.product_id.id != move.product_id.id):
|
||||
if move.prodlot_id and move.state == 'done' and (move.prodlot_id.product_id.id != move.product_id.id):
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user