From 1d7b5e5b63d2f92ea5493f028fc5987c9cfba1ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Mac=20Rouillon?= <nmr@adhoc.com.ar> 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#70810 X-original-commit: f7f283bc9ad34b337fa249abcaf71a09972b3a4e Signed-off-by: Rémy Voet <ryv-odoo@users.noreply.github.com> --- 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 c6ebda998112..1badd9d9068f 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() -- GitLab