I have OpenERP v6.1 (nightly build OpenERP Server 6.1-20120930-233203) with Postgresql 9.1 and Prestashop 1.5.0.17 over Ubuntu 12.04. I import all the Categories correctly but whey importing Products from from the OpenERP (in the Prestashop menu) I get the following error (that is repeated in every product):
2012-10-02 11:13:19,058 10748 ERROR ? Prestashop: ('ValidateError', u'Ha ocurrido un error mientras se validaban los campo(s) ean13: Error: C\xf3digo EAN err\xf3neo')
Traceback (most recent call last):
File "/home/damian/Desarrollo/addons/prestashopconnect_dependancies/openobject-extension/base_external_referentials/decorator.py", line 130, in wrapper
response = func(self, import_cr, uid, external_session, resource, *args, **kwargs)
File "/home/damian/Desarrollo/addons/prestashoperpconnect/prestashoperpconnect/product.py", line 39, in _record_one_external_resource
return super(product_product, self)._record_one_external_resource(*args, **kwargs)
File "/home/damian/Desarrollo/addons/prestashopconnect_dependancies/openobject-extension/base_external_referentials/decorator.py", line 49, in wrapped
return func(self, cr, uid, argument, *args, **kwargs)
File "/home/damian/Desarrollo/addons/prestashoperpconnect/prestashoperpconnect/prestashop_osv.py", line 206, in _record_one_external_resource
resource, defaults=defaults, mapping=mapping, context=context)
File "/home/damian/Desarrollo/addons/prestashopconnect_dependancies/openobject-extension/base_external_referentials/external_osv.py", line 721, in _record_one_external_resource
existing_rec_id = self.oe_create(cr, uid, external_session, vals, resource, defaults, context=context)
File "/home/damian/Desarrollo/addons/prestashopconnect_dependancies/openobject-extension/base_external_referentials/external_osv.py", line 786, in oe_create
return self.create(cr, uid, vals, context)
File "/home/damian/Desarrollo/addons/prestashopconnect_dependancies/product-extra-addons/product_sequence/product_product.py", line 43, in create
return super(product_product, self).create(cr, uid, vals, context)
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 4231, in create
self._validate(cr, user, [id_new], context)
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 1466, in _validate
raise except_orm('ValidateError', '\n'.join(error_msgs))
except_orm: ('ValidateError', u'Ha ocurrido un error mientras se validaban los campo(s) ean13: Error: C\xf3digo EAN err\xf3neo')
Execute url: http://localhost/prestashop/api/products?debug=True&limit=100%2C100 / method: GET
Response code: 200
Response headers:
{'status': '200', 'content-length': '132', 'content-location': u'http://localhost/prestashop/api/products?debug=True&limit=100%2C100', 'psws-version': '1.5.0.17', 'set-cookie': 'd567f3daa8a5067d5995bd10c415b704=tYPzjBBi6XvoXGLbYxq3bOATQ0b9hk%2F7AWFELAHKvQM%2BugJdb4xmhRK9OibyLBuKX8wZZr%2BVRqQ5BWoKCe8agQ%3D%3D000059; expires=Mon, 22-Oct-2012 11:13:19 GMT; path=/prestashop/; httponly', 'x-powered-by': 'PrestaShop Webservice', 'vary': 'Host,Accept-Encoding', 'access-time': '1349176399', 'content-sha1': '684a87bed187e10de45ea46102d5eb3a0bff0eb1', 'execution-time': '0.018', 'date': 'Tue, 02 Oct 2012 11:13:19 GMT', 'server': 'Apache/2.2.22 (Ubuntu)', 'content-type': 'text/xml;charset=utf-8', '-content-encoding': 'gzip'}
Response body:
<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<products>
</products>
</prestashop>
I think this ean13 bug should be fixed in lp:prestashoperpconnect revno 101 dated 2012-09-11. Could you tell us the revno of your branch ?