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 Sep 26, 2024
1 parent c486aa5 commit a69a2d8
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()

Check warning on line 274 in account_avatax_oca/models/account_move.py

View check run for this annotation

Codecov / codecov/patch

account_avatax_oca/models/account_move.py#L274

Added line #L274 was not covered by tests
# 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()

Check warning on line 277 in account_avatax_oca/models/account_move.py

View check run for this annotation

Codecov / codecov/patch

account_avatax_oca/models/account_move.py#L277

Added line #L277 was not covered by tests
return tax_result

# Same as v13
Expand Down

0 comments on commit a69a2d8

Please sign in to comment.