[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:
Jay (OpenERP) 2010-09-27 18:50:47 +05:30
parent f4f37e12ba
commit b333a3cb7d
1 changed files with 0 additions and 2 deletions

View File

@ -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