[Fix] stock: validated internal stock move if no prodlot_id assing

bzr revid: sbh@tinyerp.com-20100831110731-ss3n2hiv09z1mn06
This commit is contained in:
sbh (Open ERP) 2010-08-31 16:37:31 +05:30
parent 6eadcfce0d
commit 252d4334a6
1 changed files with 2 additions and 0 deletions

View File

@ -1331,6 +1331,8 @@ class stock_move(osv.osv):
@return: True or False
"""
for move in self.browse(cr, uid, ids):
if move.picking_id and move.picking_id.type=="internal":
return True
if not move.prodlot_id and \
(move.state == 'done' and \
( \