diff options
| author | Nicolás Mac Rouillon <nmr@adhoc.com.ar> | 2021-05-13 15:51:42 +0000 |
|---|---|---|
| committer | Nicolás Mac Rouillon <nmr@adhoc.com.ar> | 2021-05-14 12:43:12 +0000 |
| commit | 1d7b5e5b63d2f92ea5493f028fc5987c9cfba1ff (patch) | |
| tree | bbfafee34ad19587489b8d4bb5d232778116095e | |
| parent | add187862f627c4340ef7ca49d8a75e149cb12f5 (diff) | |
[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#70810
X-original-commit: f7f283bc9ad34b337fa249abcaf71a09972b3a4e
Signed-off-by: Rémy Voet <ryv-odoo@users.noreply.github.com>
| -rw-r--r-- | addons/purchase_stock/models/purchase.py | 2 |
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() |
