[FIX] Stock : Cancellation of picking should not be broken if it has no moves
lp bug: https://launchpad.net/bugs/645930 fixed bzr revid: jvo@tinyerp.com-20100927132047-1zarc44m27n2wtme
This commit is contained in:
parent
f4f37e12ba
commit
b333a3cb7d
|
@ -1088,8 +1088,6 @@ class stock_picking(osv.osv):
|
|||
@return: True or False
|
||||
"""
|
||||
for pick in self.browse(cr, uid, ids, context=context):
|
||||
if not pick.move_lines:
|
||||
return False
|
||||
for move in pick.move_lines:
|
||||
if move.state not in ('cancel',):
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue