← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 759932] Re: with module city: in res.partner.address open location error

 

** Patch added: "city.py.patch"
   https://bugs.launchpad.net/bugs/759932/+attachment/2030772/+files/city.py.patch

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/759932

Title:
  with module city: in res.partner.address open location error

Status in OpenERP Modules (addons):
  New

Bug description:
  in module openobject-addons/extra-6.0/city, when you open location
  field search page:

  Warning Message
  	Traceback (most recent call last): File "c:\OpenERP\erpaberto\trunk\oerp\openerp-server\bin\netsvc.py", line 489, in dispatch result = ExportService.getService(service_name).dispatch(method, auth, params) File "c:\OpenERP\erpaberto\trunk\oerp\openerp-server\bin\service\web_services.py", line 599, in dispatch res = fn(db, uid, *params) File "c:\OpenERP\erpaberto\trunk\oerp\openerp-server\bin\osv\osv.py", line 122, in wrapper return f(self, dbname, *args, **kwargs) File "c:\OpenERP\erpaberto\trunk\oerp\openerp-server\bin\osv\osv.py", line 176, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "c:\OpenERP\erpaberto\trunk\oerp\openerp-server\bin\osv\osv.py", line 167, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "C:\OpenERP\erpaberto\trunk\oerp\addons\openerp-addons-extra-6.0\city\city.py", line 49, in name_search if not ids: UnboundLocalError: local variable 'ids' referenced before assignment

  
  proposed solution in attachment file.



References