Skip to content

Commit

Permalink
[16.0][FIX] account_avatax_oca, force compute hearder taxes after onc…
Browse files Browse the repository at this point in the history
…hange triggered
  • Loading branch information
ChrisOForgeFlow committed Oct 8, 2024
1 parent 288a0b0 commit 96b8bc3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion account_avatax_oca/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96b8bc3

Please sign in to comment.