Skip to content

Commit

Permalink
[FIX] account_invoice_tax: onchange_tax_id
Browse files Browse the repository at this point in the history
Ticket: 63705
  • Loading branch information
pablohmontenegro committed Oct 3, 2023
1 parent dedfc4f commit 4531989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_invoice_tax/wizards/account_invoice_tax.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def add_tax(self):
container = {'records': move}
with move.with_context(check_move_validity=False)._check_balanced(container):
with move._sync_dynamic_lines(container):
move.invoice_line_ids.write({'tax_ids': [Command.link(self.tax_id.id)]})
move.invoice_line_ids.filtered(lambda x: x.display_type not in ['line_section', 'line_note', 'payment_term']).write({'tax_ids': [Command.link(self.tax_id.id)]})

# set amount in the new created tax line. En este momento si queda balanceado y se ajusta la linea AP/AR
container = {'records': move}
Expand Down

0 comments on commit 4531989

Please sign in to comment.