Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions l10n_ar_tax/models/account_tax.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,26 @@ def _check_tax_used_on_company_tax_fp(self):
raise UserError(
"Error se esta usando en ws de estas cias %s" % ws.mapped("fiscal_position_id.company_id.name")
)

def _get_tax_details(
self,
price_unit,
quantity,
precision_rounding=0.01,
rounding_method="round_per_line",
product=None,
special_mode=False,
manual_tax_amounts=None,
filter_tax_function=None,
):
"""Override to force rounding method to 'round_per_line' to avoid echange differences in AR."""
return super()._get_tax_details(
price_unit=price_unit,
quantity=quantity,
precision_rounding=precision_rounding,
rounding_method="round_per_line",
product=product,
special_mode=special_mode,
manual_tax_amounts=manual_tax_amounts,
filter_tax_function=filter_tax_function,
)