← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 670393] [NEW] IndexError: string index out of range when using base_module_record

 

Public bug reported:

I use base_module_record to record res.* and medical.* but got error
below (in the UI)

Environment Information : 
System : Linux-2.6.32-25-generic-x86_64-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID:	Ubuntu
Description:	Ubuntu 10.04.1 LTS
Release:	10.04
Codename:	lucid
Operating System Release : 2.6.32-25-generic
Operating System Version : #45-Ubuntu SMP Sat Oct 16 19:52:42 UTC 2010
Operating System Architecture : 64bit
Operating System Locale : en_AU.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0.0-rc1-1
Last revision No. & ID :1663 launchpad_translations_on_behalf_of_openerp-20101101051024-vnnuettfgv3pgd3i
Traceback (most recent call last):
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/service/web_services.py", line 623, in dispatch
    res = fn(db, uid, *params)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/service/web_services.py", line 650, in exp_execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/service/web_services.py", line 632, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/wizard/__init__.py", line 177, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/wizard/__init__.py", line 81, in execute_cr
    res['action'] = result_def['action'](self, cr, uid, data, context)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/addons/base_module_record/wizard/base_module_record_data.py", line 99, in _record_objects
    search_ids=obj_pool.search(cr,uid,search_condition)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/osv/orm.py", line 1804, in search
    return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/osv/orm.py", line 2120, in _search
    if arg[1] == '=':
IndexError: string index out of range


$ bzr info
Standalone tree (format: 2a)
Location:
  branch root: .

Related branches:
  parent branch: bzr+ssh://bazaar.launchpad.net/~openerp/openobject-server/trunk/

$ bzr log -l 1
------------------------------------------------------------
revno: 2968
committer: Fabien Pinckaers <fp@xxxxxxxxxxx>
branch nick: server
timestamp: Mon 2010-11-01 12:33:52 +0100
message:
  [IMP] Speed improvement when loading modules

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
IndexError: string index out of range when using base_module_record
https://bugs.launchpad.net/bugs/670393
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: New

Bug description:
I use base_module_record to record res.* and medical.* but got error below (in the UI)

Environment Information : 
System : Linux-2.6.32-25-generic-x86_64-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID:	Ubuntu
Description:	Ubuntu 10.04.1 LTS
Release:	10.04
Codename:	lucid
Operating System Release : 2.6.32-25-generic
Operating System Version : #45-Ubuntu SMP Sat Oct 16 19:52:42 UTC 2010
Operating System Architecture : 64bit
Operating System Locale : en_AU.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0.0-rc1-1
Last revision No. & ID :1663 launchpad_translations_on_behalf_of_openerp-20101101051024-vnnuettfgv3pgd3i
Traceback (most recent call last):
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/service/web_services.py", line 623, in dispatch
    res = fn(db, uid, *params)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/service/web_services.py", line 650, in exp_execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/service/web_services.py", line 632, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/wizard/__init__.py", line 177, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/wizard/__init__.py", line 81, in execute_cr
    res['action'] = result_def['action'](self, cr, uid, data, context)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/addons/base_module_record/wizard/base_module_record_data.py", line 99, in _record_objects
    search_ids=obj_pool.search(cr,uid,search_condition)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/osv/orm.py", line 1804, in search
    return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/osv/orm.py", line 2120, in _search
    if arg[1] == '=':
IndexError: string index out of range


$ bzr info
Standalone tree (format: 2a)
Location:
  branch root: .

Related branches:
  parent branch: bzr+ssh://bazaar.launchpad.net/~openerp/openobject-server/trunk/

$ bzr log -l 1
------------------------------------------------------------
revno: 2968
committer: Fabien Pinckaers <fp@xxxxxxxxxxx>
branch nick: server
timestamp: Mon 2010-11-01 12:33:52 +0100
message:
  [IMP] Speed improvement when loading modules





Follow ups

References