Skip to content

Commit

Permalink
[FIX] internal moves are created in waiting state, should be draft
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrunn authored and Stefan Rijnhart committed Jul 2, 2014
1 parent 398ca93 commit 5c0716d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/stock/stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,8 @@ def test_assigned(self, cr, uid, ids):
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):
Expand Down

0 comments on commit 5c0716d

Please sign in to comment.