Skip to content

Commit

Permalink
[13.0] [FIX] account_invoice_tax: use recompute_all_taxes to complete…
Browse files Browse the repository at this point in the history
… the change adding of tax.
  • Loading branch information
nicomacr authored and jjscarafia committed Feb 24, 2021
1 parent 8bcc64f commit 0c6f3f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_invoice_tax/wizards/account_invoice_tax.py
Expand Up @@ -56,7 +56,7 @@ def add_tax(self):
""" Add the given taxes to all the invoice line of the current invoice """
move_id = self.move_id.with_context(check_move_validity=False)
move_id.invoice_line_ids.write({'tax_ids': [(4, self.tax_id.id)]})
move_id._recompute_dynamic_lines(recompute_tax_base_amount=True)
move_id._recompute_dynamic_lines(recompute_all_taxes=True)

# set amount in the new created tax line
line_with_tax = move_id.line_ids.filtered(lambda x: x.tax_line_id == self.tax_id)
Expand Down

0 comments on commit 0c6f3f1

Please sign in to comment.