[7.0] Export quantity of product failed

Bug #1250894 reported by Romain Deheele - Camptocamp
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Prestashop OpenERP Connector
New
Undecided
Unassigned

Bug Description

Hello,

When we click on button "Update all the products stock quantities",
the next error occurs :

Traceback (most recent call last):
  File "/home/rdeheele/openerp_buildout/parts/connector/connector/queue/worker.py", line 122, in run_job
    job.perform(session)
  File "/home/rdeheele/openerp_buildout/parts/connector/connector/queue/job.py", line 460, in perform
    self.result = self.func(session, *self.args, **self.kwargs)
  File "/home/rdeheele/openerp_buildout/parts/prestashoperpconnect/prestashoperpconnect/product.py", line 481, in export_inventory
    return inventory_exporter.run(record_id, fields)
  File "/home/rdeheele/openerp_buildout/parts/prestashoperpconnect/prestashoperpconnect/product.py", line 453, in run
    self.backend_adapter.update_inventory(prestashop_id, attributes)
  File "/home/rdeheele/openerp_buildout/parts/prestashoperpconnect/prestashoperpconnect/product.py", line 422, in update_inventory
    return api.edit('stock_availables', attributes)
TypeError: edit() takes exactly 4 arguments (3 given)

Best Regards,

Romain

Tags: export
Mathieu Stumpf (0s)
tags: added: export
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.