Skip to content

Commit

Permalink
Fix withholding tax duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
GSLabIt authored and tafaRU committed Jul 11, 2019
1 parent 939cbd1 commit a162821
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions l10n_it_withholding_tax/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright 2015 Alessandro Camilli (<http://www.openforce.it>)
# Copyright 2018 Lorenzo Battistini (https://github.com/eLBati)
# Copyright 2019 Giovanni - GSLabIt
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
Expand Down
2 changes: 1 addition & 1 deletion l10n_it_withholding_tax/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def create(self, vals):
def _onchange_invoice_line_wt_ids(self):
self.ensure_one()
wt_taxes_grouped = self.get_wt_taxes_values()
wt_tax_lines = []
wt_tax_lines = [(5, 0, 0)]
for tax in wt_taxes_grouped.values():
wt_tax_lines.append((0, 0, tax))
self.withholding_tax_line_ids = wt_tax_lines
Expand Down

0 comments on commit a162821

Please sign in to comment.