MRP: fix check move if no move_id
bzr revid: ced-9a320b092212769116128030a28d58442f209edf
This commit is contained in:
parent
8579038ac7
commit
c10ef23528
|
@ -660,8 +660,9 @@ class mrp_procurement(osv.osv):
|
|||
def check_move_cancel(self, cr, uid, ids, context={}):
|
||||
res = True
|
||||
for procurement in self.browse(cr, uid, ids, context):
|
||||
if not procurement.move_id.state=='cancel':
|
||||
res = False
|
||||
if procurement.move_id:
|
||||
if not procurement.move_id.state=='cancel':
|
||||
res = False
|
||||
return res
|
||||
|
||||
def check_move_done(self, cr, uid, ids, context={}):
|
||||
|
|
Loading…
Reference in New Issue