Skip to content

Commit 2aa85de

Browse files
[IMP] l10n_ar_tax: revert withholding rounding patch and improve calculation
Revertimos el cambio de este pull request #1218 y mejoramos cálculo de retención tal como lo hizo odoo aquí odoo/odoo@ac521b2#diff-dab181eb3722c2603ab3586daa152293cfa7b98bdccc7bd7508eec8062de67d9R71 Ticket: 101778
1 parent 3de8064 commit 2aa85de

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

l10n_ar_tax/models/l10n_ar_payment_withholding.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,9 @@ def _tax_compute_all_helper(self):
103103
product=False,
104104
partner=False,
105105
is_refund=False,
106+
rounding_method="round_per_line",
106107
)
107-
tax_amount = self.currency_id.round(taxes_res["total_included"] - taxes_res["total_excluded"])
108-
# TODO: When Odoo fixes the compute_all method of account_tax, uncomment the line below and
109-
# remove the line above. See Adhoc ticket 101778 for more information.
110-
# tax_amount = taxes_res["taxes"][0]["amount"]
108+
tax_amount = taxes_res["taxes"][0]["amount"]
111109
tax_account_id = taxes_res["taxes"][0]["account_id"]
112110
tax_repartition_line_id = taxes_res["taxes"][0]["tax_repartition_line_id"]
113111

0 commit comments

Comments
 (0)