Approve Connection Error on OpenERP 6.1

Bug #1018223 reported by Fontaine Laurent
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenERP Prestashop Sync
Incomplete
Undecided
Unassigned

Bug Description

OpenERP Server Error

Client Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 180, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1047, in call_button
    action = self.call_common(req, model, method, args, domain_id, context_id)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 991, in call_common
    return self._call_kw(req, model, method, args, {})
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1005, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
    args, kw)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 611, in send
    raise fault

Server Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 592, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 360, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 586, in dispatch
    res = fn(db, uid, *params)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 167, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/addons/openerp_prestashop_sync/sale/shop/sale_shop.py", line 160, in approve_shop
    self.import_language(cr, uid, ids, context=context)
  File "/usr/lib/pymodules/python2.7/openerp/addons/openerp_prestashop_sync/sale/shop/sale_shop.py", line 219, in import_language
    self.do_synch(cr, uid, ids, 'prestashop.lang', context=new_cnt)
  File "/usr/lib/pymodules/python2.7/openerp/addons/openerp_prestashop_sync/sale/shop/sale_shop.py", line 212, in do_synch
    context=context)
  File "/usr/lib/pymodules/python2.7/openerp/addons/openerp_prestashop_sync/prestashop_osv.py", line 631, in import_from_prestashop
    convert_presta, Thread=False)
  File "/usr/lib/pymodules/python2.7/openerp/addons/openerp_prestashop_sync/prestashop_osv.py", line 668, in import_from_prestashop_thread
    context=context):
  File "/usr/lib/pymodules/python2.7/openerp/addons/openerp_prestashop_sync/prestashop_osv.py", line 119, in get_openerp_data
    if record_name in presta_dicts:
UnboundLocalError: local variable 'record_name' referenced before assignment

I'm will get this error else time i try to Approve Connection on website some one could help me ?

Changed in openerp-prestashop-sync:
status: New → Invalid
Revision history for this message
Giovanni Ruta (ruta-giovanni) wrote :

When I try to approve connection i get the same error... I tryed to modify prestashop_osv.py with global vars but this didn't correct error...

Changed in openerp-prestashop-sync:
status: Invalid → Incomplete
Revision history for this message
Samanth Rao (samanth-x) wrote :

Any update on this issue?

Revision history for this message
Vikas (iamchauhan-a) wrote :

I am getting exactly the same error. OpenERP ver 6.1-1 Prestashop 1.5.5.0. Test connection was successful , while approve connection threw the above error. I see the bug status invalid. What am I missing?

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.