From be7b57a6fa2b06ba8812735e78f2ff4dc0412689 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Mon, 3 Feb 2020 14:38:20 +0000 Subject: [PATCH] [FIX] account: give a correct example The computation was incorrect, the answer was 10, not 110 with the previous formula Courtesy of Frederico Freire Boaventura closes odoo/odoo#44514 X-original-commit: 577e1ad8314cac6e61f60f997f338df4b7a1da38 Signed-off-by: Martin Trigaux (mat) --- addons/account/i18n/account.pot | 2 +- addons/account/models/account.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/i18n/account.pot b/addons/account/i18n/account.pot index c88080bf9c5..cfb005d323a 100644 --- a/addons/account/i18n/account.pot +++ b/addons/account/i18n/account.pot @@ -22,7 +22,7 @@ msgid "" " - Group of Taxes: The tax is a set of sub taxes.\n" " - Fixed: The tax amount stays the same whatever the price.\n" " - Percentage of Price: The tax amount is a % of the price:\n" -" e.g 100 * 10% = 110 (not price included)\n" +" e.g 100 * (1 + 10%) = 110 (not price included)\n" " e.g 110 / (1 + 10%) = 100 (price included)\n" " - Percentage of Price Tax Included: The tax amount is a division of the price:\n" " e.g 180 / (1 - 10%) = 200 (not price included)\n" diff --git a/addons/account/models/account.py b/addons/account/models/account.py index 45f207f8bb4..48385ebee96 100644 --- a/addons/account/models/account.py +++ b/addons/account/models/account.py @@ -1511,7 +1511,7 @@ class AccountTax(models.Model): - Group of Taxes: The tax is a set of sub taxes. - Fixed: The tax amount stays the same whatever the price. - Percentage of Price: The tax amount is a % of the price: - e.g 100 * 10% = 110 (not price included) + e.g 100 * (1 + 10%) = 110 (not price included) e.g 110 / (1 + 10%) = 100 (price included) - Percentage of Price Tax Included: The tax amount is a division of the price: e.g 180 / (1 - 10%) = 200 (not price included)