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
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp