diff --git a/addons/account/models/account_tax.py b/addons/account/models/account_tax.py index 7439f3aee04c2..e8e51c9dddf3c 100644 --- a/addons/account/models/account_tax.py +++ b/addons/account/models/account_tax.py @@ -862,6 +862,9 @@ def _compute_taxes_for_single_line(self, base_line, handle_price_include=True, i tax_values_list = [] for tax_res in taxes_res['taxes']: + tax_amount = tax_res['amount'] / rate + if self.company_id.tax_calculation_rounding_method == 'round_per_line': + tax_amount = currency.round(tax_amount) tax_rep = self.env['account.tax.repartition.line'].browse(tax_res['tax_repartition_line_id']) tax_values_list.append({ **tax_res, @@ -869,7 +872,7 @@ def _compute_taxes_for_single_line(self, base_line, handle_price_include=True, i 'base_amount_currency': tax_res['base'], 'base_amount': currency.round(tax_res['base'] / rate), 'tax_amount_currency': tax_res['amount'], - 'tax_amount': currency.round(tax_res['amount'] / rate), + 'tax_amount': tax_amount, }) else: