c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #34926
[Bug 683680] Re: openerp6: check_vat_PREFIX not check is country vat
Hi, thanks for reporting this bug.
It's fixed in rev 436 for v6 stable and rev 466 for trunk version.
Have a nice day
** Changed in: magentoerpconnect
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/683680
Title:
openerp6: check_vat_PREFIX not check is country vat
Status in Magento OpenERP Connector:
Fix Released
Bug description:
==Error==
File "/home/resteve/openerp-server6/bin/addons/magentoerpconnect/sale.py", line 323, in get_order_addresses
check = getattr(partner_obj, 'check_vat_' + vat_country)
AttributeError: 'res.partner' object has no attribute 'check_vat_45'
==code==
sale.py line 321
vat = data_record['customer_taxvat'].translate(allchars, delchars).upper()
vat_country, vat_number = vat[:2].lower(), vat[2:]
check = getattr(partner_obj, 'check_vat_' + vat_country)
==Observations==
Magento not validate VAT number and customers not insert code country before number, for example: ES12312312A
Line 321 requiere check if vat[:2] it's a prefix or not. If it's
prefix, validate with check_vat_es. If not prefix, continue.
==note==
check_vat_45
45 is first two characters at vat customer in magento
To manage notifications about this bug go to:
https://bugs.launchpad.net/magentoerpconnect/+bug/683680/+subscriptions
References