[6.1] Mapping error image_binary & prod_categ_ids

Bug #1098938 reported by NightHawk
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Prestashop OpenERP Connector
New
Undecided
Alexis de Lattre

Bug Description

Hello everybody
I still cant export any product

2013-01-12 17:47:14,374 24640 INFO ? *****-com: Start to export the ressource product.product
2013-01-12 17:47:14,405 24640 INFO ? *****-com: Retrieve the list of ids to export for the ressource product.product
2013-01-12 17:47:14,407 24640 INFO ? *****-com: 1 product.product ressource will be exported
2013-01-12 17:47:14,412 24640 INFO ? *****-com: Start to read the ressource product.product : [9]
2013-01-12 17:47:14,562 24640 INFO ? *****-com: Start to transform and send the ressource product.product : 9
2013-01-12 17:47:14,692 24640 ERROR ? *****-com: 'image_binary'
Traceback (most recent call last):
  File "/opt/openerp/6.1/otros/base_external_referentials/decorator.py", line 130, in wrapper
    response = func(self, import_cr, uid, external_session, resource, *args, **kwargs)
  File "/opt/openerp/6.1/otros/prestashoperpconnect/product.py", line 75, in _transform_and_send_one_resource
    return super(product_category, self)._transform_and_send_one_resource(*args, **kwargs)
  File "/opt/openerp/6.1/otros/base_external_referentials/external_osv.py", line 1110, in _transform_and_send_one_resource
    return self.send_to_external(cr, uid, external_session, {resource_id : resource}, mapping, mapping_id, update_date, context=context)
  File "/opt/openerp/6.1/otros/base_external_referentials/external_osv.py", line 994, in send_to_external
    ext_create_ids = self.ext_create(cr, uid, external_session, resources_to_create, mapping, mapping_id, context=context)
  File "/opt/openerp/6.1/otros/base_external_referentials/decorator.py", line 49, in wrapped
    return func(self, cr, uid, argument, *args, **kwargs)
  File "/opt/openerp/6.1/otros/prestashoperpconnect/prestashop_osv.py", line 97, in ext_create
    return self.ext_create_or_update(cr, uid, external_session, resources, 'add', mapping=mapping, mapping_id=mapping_id, context=context)
  File "/opt/openerp/6.1/otros/prestashoperpconnect/prestashop_osv.py", line 90, in ext_create_or_update
    res[resource_id] = self.call_prestashop_method(cr, uid, external_session, resource_id, resource, method, mapping=mapping, mapping_id=mapping_id, context=context)
  File "/opt/openerp/6.1/otros/prestashoperpconnect_catalog_manager/product.py", line 48, in call_prestashop_method
    image_binary = resource['category'].pop('image_binary')
KeyError: 'image_binary'
2013-01-12 17:47:14,706 24640 ERROR ? *****-com: (u"Error with the mapping : Product categories M2M. Error details : global name 'prod_categ_ids' is not defined",)
Traceback (most recent call last):
  File "/opt/openerp/6.1/otros/base_external_referentials/decorator.py", line 130, in wrapper
    response = func(self, import_cr, uid, external_session, resource, *args, **kwargs)
  File "/opt/openerp/6.1/otros/prestashoperpconnect_catalog_manager/product.py", line 81, in _transform_and_send_one_resource
    return super(product_product, self)._transform_and_send_one_resource(*args, **kwargs)
  File "/opt/openerp/6.1/otros/base_external_referentials/external_osv.py", line 1109, in _transform_and_send_one_resource
    defaults=defaults, context=context)
  File "/opt/openerp/6.1/otros/base_external_referentials/decorator.py", line 49, in wrapped
    return func(self, cr, uid, argument, *args, **kwargs)
  File "/opt/openerp/6.1/otros/prestashoperpconnect_catalog_manager/product.py", line 85, in _transform_one_resource
    vals = super(product_product,self)._transform_one_resource(cr, uid, external_session, convertion_type, resource, **kwargs)
  File "/opt/openerp/6.1/otros/base_external_referentials/external_osv.py", line 1422, in _transform_one_resource
    raise MappingError(e, mapping_line['name'], self._name)
MappingError: the mapping line: Product categories M2M for the object product.product has this error: global name 'prod_categ_ids' is not defined

Revision history for this message
NightHawk (nighthawk-nhdnet) wrote :

now I'm trying with some branch but a cant make it work. Everything else is working fine. I can import products, categories, customers and orders from prestashop, but I cant export catalog from openerp.
Please, give me some help

Revision history for this message
NightHawk (nighthawk-nhdnet) wrote :

This is a fresh install, but it stops on this error every time

MappingError: the mapping line: Product categories M2M for the object product.product has this error: global name 'prod_categ_ids' is not defined

Thank you

Changed in prestashoperpconnect:
assignee: nobody → Alexis de Lattre (alexis-via)
summary: - Mapping error image_binary & prod_categ_ids
+ [6.1] Mapping error image_binary & prod_categ_ids
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.