[6.1] Export catalog raises error on try line

Bug #1179521 reported by Grover Menacho
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Prestashop OpenERP Connector
New
Undecided
Unassigned

Bug Description

Hello,}
When I try to export catalog from OpenERP it does nothing.
I checked on Report Lines and it appears this:
edit() takes exactly 4 arguments (3 given)

Traceback (most recent call last):
  File "/home/consultor/openerp61/openerp6/openerp/addons/base_external_referentials/decorator.py", line 130, in wrapper
    response = func(self, import_cr, uid, external_session, resource, *args, **kwargs)
  File "/home/consultor/openerp61/openerp6/openerp/addons/prestashoperpconnect/product.py", line 75, in _transform_and_send_one_resource
    return super(product_category, self)._transform_and_send_one_resource(*args, **kwargs)
  File "/home/consultor/openerp61/openerp6/openerp/addons/base_external_referentials/external_osv.py", line 1114, 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 "/home/consultor/openerp61/openerp6/openerp/addons/base_external_referentials/external_osv.py", line 997, in send_to_external
    self.ext_update(cr, uid, external_session, resources_to_update, mapping, mapping_id, context=context)
  File "/home/consultor/openerp61/openerp6/openerp/addons/base_external_referentials/decorator.py", line 49, in wrapped
    return func(self, cr, uid, argument, *args, **kwargs)
  File "/home/consultor/openerp61/openerp6/openerp/addons/prestashoperpconnect/prestashop_osv.py", line 112, in ext_update
    return self.ext_create_or_update(cr, uid, external_session, resources, 'edit', mapping=mapping, mapping_id=mapping_id, context=context)
  File "/home/consultor/openerp61/openerp6/openerp/addons/prestashoperpconnect/prestashop_osv.py", line 99, 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 "/home/consultor/openerp61/openerp6/openerp/addons/prestashoperpconnect_catalog_manager/product.py", line 51, in call_prestashop_method
    res = super(product_category, self).call_prestashop_method(cr, uid, external_session, resource_id, resource, method, mapping=mapping, mapping_id=mapping_id, context=context)
  File "/home/consultor/openerp61/openerp6/openerp/addons/prestashoperpconnect/prestashop_osv.py", line 84, in call_prestashop_method
    res = getattr(external_session.connection, ps_method)(mapping[mapping_id]['external_resource_name'], resource)
TypeError: edit() takes exactly 4 arguments (3 given)

But I'm not sure why. I tried to see what's the problem but I can't see it. Is it a prestapyt matter? Or maybe a configuration file?

Tags: export
summary: - Export catalog raises error on try line
+ [6.1] Export catalog raises error on try line
Revision history for this message
Juanjo A (juanjoa) wrote :

Hi, some update about this problem?
Thx

Mathieu Stumpf (0s)
tags: added: export
Revision history for this message
MasterPrenium (masterprenium) wrote :

Same problem here ... it's really blockant. Do you have any idea on how to fix it ?

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.