From d5c09fad4e593b485eb3802654d6c18399adcdd0 Mon Sep 17 00:00:00 2001 From: Swapnesh Shah Date: Sat, 27 Oct 2018 09:12:21 +0000 Subject: [PATCH] [FIX] account: correct typo in warning message closes odoo/odoo#28218 --- addons/account/i18n/account.pot | 2 +- addons/account/models/partner.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account/i18n/account.pot b/addons/account/i18n/account.pot index 59b3ffd98e9..36359a44ba3 100644 --- a/addons/account/i18n/account.pot +++ b/addons/account/i18n/account.pot @@ -631,7 +631,7 @@ msgstr "" #. module: account #: sql_constraint:account.fiscal.position.tax:0 -msgid "A tax fiscal position could be defined only once time on same taxes." +msgid "A tax fiscal position could be defined only one time on same taxes." msgstr "" #. module: account diff --git a/addons/account/models/partner.py b/addons/account/models/partner.py index 34f51fc0204..f2485b379e6 100644 --- a/addons/account/models/partner.py +++ b/addons/account/models/partner.py @@ -175,7 +175,7 @@ class AccountFiscalPositionTax(models.Model): _sql_constraints = [ ('tax_src_dest_uniq', 'unique (position_id,tax_src_id,tax_dest_id)', - 'A tax fiscal position could be defined only once time on same taxes.') + 'A tax fiscal position could be defined only one time on same taxes.') ] @@ -194,7 +194,7 @@ class AccountFiscalPositionAccount(models.Model): _sql_constraints = [ ('account_src_dest_uniq', 'unique (position_id,account_src_id,account_dest_id)', - 'An account fiscal position could be defined only once time on same accounts.') + 'An account fiscal position could be defined only one time on same accounts.') ]