[FIX] stock: fix traceback of unlink of picking
This commit is contained in:
@@ -417,7 +417,8 @@ class Picking(models.Model):
|
||||
|
||||
@api.multi
|
||||
def unlink(self):
|
||||
self.mapped('move_lines').action_cancel().unlink()
|
||||
self.mapped('move_lines').action_cancel()
|
||||
self.mapped('move_lines').unlink() # Checks if moves are not done
|
||||
return super(Picking, self).unlink()
|
||||
|
||||
# Actions
|
||||
|
||||
Reference in New Issue
Block a user