[FIX] internal moves are created in waiting state, should be draft
authorhbrunn@therp.nl <hbrunn@therp.nl>
Thu, 13 Mar 2014 16:17:59 +0000 (16:17 +0000)
committerStefan Rijnhart <stefan@therp.nl>
Wed, 2 Jul 2014 17:43:43 +0000 (19:43 +0200)
https://launchpad.net/bugs/1250053

addons/stock/stock.py

index d960335..2c62432 100644 (file)
@@ -866,6 +866,8 @@ class stock_picking(osv.osv):
                 if all([x.state != 'waiting' for x in pick.move_lines]):
                     return True
             for move in pick.move_lines:
+                if (move.state) == 'waiting':
+                    move.check_assign()
                 if (move.state in ('confirmed', 'draft')) and (mt == 'one'):
                     return False
                 if (mt == 'direct') and (move.state == 'assigned') and (move.product_qty):