mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Skipping potential error when move has been deleted
This commit is contained in:
@@ -39,7 +39,7 @@ class StockMoveLine(models.Model):
|
||||
def _action_done(self):
|
||||
res = super(StockMoveLine, self)._action_done()
|
||||
for ml in self.filtered(
|
||||
lambda m: m.move_id.allocation_ids):
|
||||
lambda m: m.exists() and m.move_id.allocation_ids):
|
||||
qty_done = ml.product_uom_id._compute_quantity(
|
||||
ml.qty_done, ml.product_id.uom_id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user