From a69a2d82717c4feefaa5990c8735bc89307665bc Mon Sep 17 00:00:00 2001 From: Christopher Ormaza Date: Fri, 20 Sep 2024 15:47:37 -0500 Subject: [PATCH] [16.0][FIX] account_avatax_oca, force compute hearder taxes after onchange triggered --- account_avatax_oca/models/account_move.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/account_avatax_oca/models/account_move.py b/account_avatax_oca/models/account_move.py index b74239942..7e03a5b84 100644 --- a/account_avatax_oca/models/account_move.py +++ b/account_avatax_oca/models/account_move.py @@ -271,7 +271,10 @@ def _avatax_compute_tax(self, commit=False): line_form.tax_ids.clear() for tax in taxes: line_form.tax_ids.add(tax) - + self = move_form.save() + # After taxes are changed is needed to force compute taxes again, in 16 version + # change of tax doesn't trigger compute of taxes on header + self._compute_amount() return tax_result # Same as v13