Skip to content
Snippets Groups Projects
Commit f7f283bc authored by Nicolás Mac Rouillon's avatar Nicolás Mac Rouillon
Browse files

[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#70800

Signed-off-by: default avatarRémy Voet <ryv-odoo@users.noreply.github.com>
parent 90e21592
No related branches found
No related tags found
No related merge requests found
......@@ -312,7 +312,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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment