[FIX] base_vat: faluty vat number check for italy
lp bug: https://launchpad.net/bugs/578888 fixed bzr revid: vth@tinyerp.com-20101104064930-rg6qlbtecg6shii5
This commit is contained in:
parent
98e68058ab
commit
1394a3272f
|
@ -82,7 +82,6 @@ class res_partner(osv.osv):
|
|||
# it starts with 2 letters
|
||||
# has more than 3 characters
|
||||
return cn[0] in string.ascii_lowercase and cn[1] in string.ascii_lowercase
|
||||
|
||||
vat_country, vat_number = self._split_vat(self.browse(cr, uid, ids)[0].vat)
|
||||
if default_vat_check(vat_country, vat_number):
|
||||
vat_no = vat_country in _ref_vat and _ref_vat[vat_country] or 'Country Code + Vat Number'
|
||||
|
@ -709,8 +708,6 @@ class res_partner(osv.osv):
|
|||
return False
|
||||
if int(vat[7:10]) > 100 and int(vat[7:10]) < 120:
|
||||
return False
|
||||
if int(vat[7:10]) > 121:
|
||||
return False
|
||||
|
||||
sum = int(vat[0]) + mult_add(2, int(vat[1])) + int(vat[2]) + \
|
||||
mult_add(2, int(vat[3])) + int(vat[4]) + \
|
||||
|
|
Loading…
Reference in New Issue