[Fix] stock: validated internal stock move if no prodlot_id assing
authorsbh (Open ERP) <sbh@tinyerp.com>
Tue, 31 Aug 2010 11:07:31 +0000 (16:37 +0530)
committersbh (Open ERP) <sbh@tinyerp.com>
Tue, 31 Aug 2010 11:07:31 +0000 (16:37 +0530)
bzr revid: sbh@tinyerp.com-20100831110731-ss3n2hiv09z1mn06

addons/stock/stock.py

index 43621e5..784070c 100644 (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 \
                ( \