Avaible revision 382. [FIX+IMP] VAT import Mgn to OERP: check metod exists: check_vat_country > Add country vat to sale.shop if Mgn vat don't have country_vat and validate
http://bazaar.launchpad.net/~zikzak/magentoerpconnect/openerp6-module/revision/382 ** Changed in: magentoerpconnect Status: New => Fix Committed -- You received this bug notification because you are a member of C2C OERPScenario, which is subscribed to the OpenERP Project Group. https://bugs.launchpad.net/bugs/683680 Title: openerp6: check_vat_PREFIX not check is country vat Status in Magento Open ERP Connector: Fix Committed 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 _______________________________________________ Mailing list: https://launchpad.net/~c2c-oerpscenario Post to : [email protected] Unsubscribe : https://launchpad.net/~c2c-oerpscenario More help : https://help.launchpad.net/ListHelp

