[FIX] account: tax details query
When having a cash rounding line on an invoice, base amount is taken twice into account in the tax report when grouping by account > tax or tax > account. Steps: - Activate cash rounding, and create one with 0.05 rounding, method 'HALF_UP' and 'biggest_tax' strategy - Create an invoice with a product line with unit price 1.24$, tax 15% (included in price) - Select the rounding method created above. - A rounding line for tax 15.0% and 0.02$ should have been created - Go to tax report and group by Account->Tax or Tax->Account -> Base amount is 2.48 instead of 1.24 opw-3336398 closes odoo/odoo#130375 X-original-commit: 34721726676dbee8b13dc19f449e5307140b6086 Related: odoo/enterprise#44934 Signed-off-by: Laurent Smet (las) <las@odoo.com> Signed-off-by: Guillaume Vanleynseele (guva) <guva@odoo.com>
This commit is contained in:
@@ -392,6 +392,7 @@ class AccountMoveLine(models.Model):
|
||||
tax_line.tax_repartition_line_id,
|
||||
|
||||
tax_line.company_id,
|
||||
tax_line.display_type AS display_type,
|
||||
comp_curr.id AS company_currency_id,
|
||||
comp_curr.decimal_places AS comp_curr_prec,
|
||||
curr.id AS currency_id,
|
||||
@@ -457,6 +458,7 @@ class AccountMoveLine(models.Model):
|
||||
|
||||
sub.base_line_id,
|
||||
sub.tax_line_id,
|
||||
sub.display_type,
|
||||
sub.src_line_id,
|
||||
|
||||
sub.tax_id,
|
||||
|
||||
Reference in New Issue
Block a user