From 1d1d484eaf22c017ff337ad09f45579fffceae9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 20 Mar 2009 12:22:48 +0100 Subject: [PATCH] Fix spell --- party.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/party.py b/party.py index dd33b38cac..d7202fa6b9 100644 --- a/party.py +++ b/party.py @@ -12,7 +12,7 @@ try: VAT_COUNTRIES.append((country, country)) except ImportError: logging.getLogger('party').warning( - 'Unable to import vatnumber. VAT number validation disable.') + 'Unable to import vatnumber. VAT number validation disabled.') STATES = { 'readonly': "active == False", @@ -34,7 +34,7 @@ class Party(ModelSQL, ModelView): vat_number = fields.Char('VAT Number', help="Value Added Tax number", states=STATES) vat_country = fields.Selection(VAT_COUNTRIES, 'VAT Country', states=STATES, - help="Setting VAT country will enable verification of the VAT number.", + help="Setting VAT country will enable validation of the VAT number.", translate=False) vat_code = fields.Function('get_vat_code', type='char', string="VAT Code", fnct_search='search_vat_code') @@ -64,10 +64,10 @@ class Party(ModelSQL, ModelView): 'The code of the party must be unique!') ] self._constraints += [ - ('check_vat', 'wrong_vat'), + ('check_vat', 'unvalid_vat'), ] self._error_messages.update({ - 'wrong_vat': 'Wrong VAT number!', + 'unvalid_vat': 'Unvalid VAT number!', }) self._order.insert(0, ('name', 'ASC'))