From 287e42ad72c1f054a05a641a20e06e7ece930836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Mac=20Rouillon?= Date: Thu, 13 May 2021 15:51:42 +0000 Subject: [PATCH] [FIX] purchase_stock: Use the correct name of method recompute_state. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This bug is cause in this PR https://github.com/odoo/odoo/pull/70312 closes odoo/odoo#70815 X-original-commit: 09def1e550ba2ae67a8595fa561dc073e71cf4a2 Signed-off-by: Rémy Voet Signed-off-by: William Henrotin --- addons/purchase_stock/models/purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase_stock/models/purchase.py b/addons/purchase_stock/models/purchase.py index e82e74eed01..b4d63b36c65 100644 --- a/addons/purchase_stock/models/purchase.py +++ b/addons/purchase_stock/models/purchase.py @@ -370,7 +370,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()