ImportError: cannot import name import_inventory while running " Import stock quantities"

Bug #1313115 reported by Dave Walschot on 2014-04-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Prestashop OpenERP Connector
Undecided
Unassigned

Bug Description

Working with a test setup of openerp 7 and a fresh install of prestashop 1.5.6.2, with presta demo data

Have installed the adapter with the below builds

openerp-connector 201 (because prestashoperpconnect isnt compatible with later versions of de api)
e-commerce-addons 343
prestashoperpconnect 361
openerp-product-attributes 241
sale-wkfl 42

when pressing the "Import stock quantities" the following error is displayed

Client Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/openerp-7.0_20140117_002509-py2.6.egg/openerp/addons/web/http.py", line 204, in dispatch
    response["result"] = method(self, **self.params)
  File "/usr/lib/python2.6/site-packages/openerp-7.0_20140117_002509-py2.6.egg/openerp/addons/web/controllers/main.py", line 1129, in call_button
    action = self._call_kw(req, model, method, args, {})
  File "/usr/lib/python2.6/site-packages/openerp-7.0_20140117_002509-py2.6.egg/openerp/addons/web/controllers/main.py", line 1117, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/openerp-7.0_20140117_002509-py2.6.egg/openerp/addons/web/session.py", line 42, in proxy
    result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
  File "/usr/lib/python2.6/site-packages/openerp-7.0_20140117_002509-py2.6.egg/openerp/addons/web/session.py", line 30, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/usr/lib/python2.6/site-packages/openerp-7.0_20140117_002509-py2.6.egg/openerp/addons/web/session.py", line 103, in send
    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/openerp-7.0_20140117_002509-py2.6.egg/openerp/addons/web/session.py", line 89, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/usr/lib/python2.6/site-packages/openerp-7.0_20140117_002509-py2.6.egg/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/lib/python2.6/site-packages/openerp-7.0_20140117_002509-py2.6.egg/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/usr/lib/python2.6/site-packages/openerp-7.0_20140117_002509-py2.6.egg/openerp/osv/osv.py", line 190, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/usr/lib/python2.6/site-packages/openerp-7.0_20140117_002509-py2.6.egg/openerp/osv/osv.py", line 132, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/openerp-7.0_20140117_002509-py2.6.egg/openerp/osv/osv.py", line 199, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/python2.6/site-packages/openerp-7.0_20140117_002509-py2.6.egg/openerp/osv/osv.py", line 187, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/python2.6/site-packages/openerp-7.0_20140117_002509-py2.6.egg/openerp/addons/prestashoperpconnect/models/prestashop_model.py", line 199, in import_stock_qty
    from .product import import_inventory
ImportError: cannot import name import_inventory

Import is not performed, quantities stay on zerro.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers