Fix spell

This commit is contained in:
Cédric Krier committed 2009-03-20 12:22:48 +01:00
1 parent 50e509f136
commit 1d1d484eaf
1 file changed
+4 -4
+4 -4
View File
@@ -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'))