[FIX] purchase_stock: Use the correct name of method recompute_state.

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 <ryv-odoo@users.noreply.github.com>
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
This commit is contained in:
Nicolás Mac Rouillon
2021-05-18 06:26:35 +00:00
committed by Rémy Voet (ryv)
parent 17653033b8
commit 287e42ad72
+1 -1
View File
@@ -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()