← Back to team overview

openerp-india team mailing list archive

[Bug 943331] Re: VAT Number Validation Error

 

Hello Amit,

Sorry for my late late reply. The vat number should be 1234567890 or
0123456789, and it still gives error like this.

I have installed OpenERP 7.0 Alpha. The problem still continues. The
error I get is below..

ValidateError

Error occurred while validating the field(s) vat: 
This VAT number does not seem to be valid.
Note: the expected format is 'CC##' (CC=Country Code, ##=VAT Number)


I have written a python code for base_vat.py also same for the vatnumber module but couldn't get it to work since I am new to OpenErp...

def check_vat_tr(vat):
	'''
	Check Turkey VAT number.
	'''
	if len(vat) != 10:
		return False
	try:
		int(vat)
	except ValueError:
		return False
	return True


** Changed in: openobject-addons
       Status: Incomplete => New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/943331

Title:
  VAT Number Validation Error

Status in OpenERP Addons (modules):
  New

Bug description:
  I have received the below error in 6.1, when adding a Turkish Company.

  ValidateError

  Error occurred while validating the field(s) vat: 
  This VAT number does not seem to be valid.
  Note: the expected format is 'CC##' (CC=Country Code, ##=VAT Number)

  
  As far as I've checked there is no validation in the vatnumber.py but I have submitted an issues about adding the number I have received that OpenERP should change. If there is no validation present OpenERP should aprove any written format. Because there are lots of countries seems that vatvalidation.py doesn't cover. Countries with all digit VAT numbers (in different lengths) with no actual validation system.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/943331/+subscriptions


References