summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
Diffstat (limited to 'addons')
-rw-r--r--addons/purchase_stock/models/purchase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/purchase_stock/models/purchase.py b/addons/purchase_stock/models/purchase.py
index c6ebda99811..1badd9d9068 100644
--- a/addons/purchase_stock/models/purchase.py
+++ b/addons/purchase_stock/models/purchase.py
@@ -348,7 +348,7 @@ class PurchaseOrderLine(models.Model):
not_ppg_cancel_lines = self.filtered(lambda line: not line.propagate_cancel)
not_ppg_cancel_lines.move_dest_ids.write({'procure_method': 'make_to_stock'})
- not_ppg_cancel_lines.move_dest_ids.recompute_state()
+ not_ppg_cancel_lines.move_dest_ids._recompute_state()
return super().unlink()