diff options
| author | Goffin Simon <sig@odoo.com> | 2021-04-28 07:46:18 +0000 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2021-04-28 08:03:15 +0000 |
| commit | 28e85cdbbd499b3fa826c15d4058aa4b83b993c9 (patch) | |
| tree | bad66ea9808b3272eaea988935e4e0a9d3224022 | |
| parent | f7048c1de139113eb6109787e669160146319bd3 (diff) | |
[FIX] account: Wrong amount of tax with different currency
Steps to reproduce the bug:
Create an accounting entry AE with $ as default currency
Add a line L1 with 10 € and a tax of 15%
Bug:
The added tax line was 0.75€ instead of 1.5€
opw:2510338
closes odoo/odoo#69920
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Co-authored-by: smetl <las@odoo.com>
| -rw-r--r-- | addons/account/models/account_move.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 5da7aed781f..220207b6cc5 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -580,7 +580,7 @@ class AccountMove(models.Model): quantity = 1.0 tax_type = base_line.tax_ids[0].type_tax_use if base_line.tax_ids else None is_refund = (tax_type == 'sale' and base_line.debit) or (tax_type == 'purchase' and base_line.credit) - price_unit_wo_discount = base_line.balance + price_unit_wo_discount = base_line.amount_currency balance_taxes_res = base_line.tax_ids._origin.with_context(force_sign=move._get_tax_force_sign()).compute_all( price_unit_wo_discount, |
