c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #01984
[Bug 669868] [NEW] project_planning : Failed to search user, KeyError: 'parent_id'
Public bug reported:
* Project/Long Term Planning/Plannings
* Form View :
* Time Encoding[Planning Lines]
* user_id (many2one): when you search for user following error appears:
Environment Information :
System : Linux-2.6.32-21-generic-i686-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-21-generic
Operating System Version : #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : en_IN.ISO8859-1
Python Version : 2.6.5
OpenERP-Client Version : 6.0.0-rc1-1
Last revision No. & ID :1664 launchpad_translations_on_behalf_of_openerp-20101102044939-6giqlf770q3jayaj
Traceback (most recent call last):
File "/home/tiny/workspace/trunk/server/bin/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/home/tiny/workspace/trunk/server/bin/service/web_services.py", line 586, in dispatch
res = fn(db, uid, *params)
File "/home/tiny/workspace/trunk/server/bin/osv/osv.py", line 57, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/tiny/workspace/trunk/server/bin/osv/osv.py", line 140, in execute
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/tiny/workspace/trunk/server/bin/osv/osv.py", line 130, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/tiny/workspace/trunk/server/bin/addons/base/res/res_user.py", line 372, in name_search
ids = self.search(cr, user, [('name',operator,name)]+ args, limit=limit)
File "/home/tiny/workspace/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/tiny/workspace/trunk/server/bin/osv/orm.py", line 4029, in _search
query = self._where_calc(cr, user, args, context=context)
File "/home/tiny/workspace/trunk/server/bin/osv/orm.py", line 3899, in _where_calc
e.parse(cr, user, self, context)
File "/home/tiny/workspace/trunk/server/bin/osv/expression.py", line 138, in parse
dom = _rec_get(right, working_table)
File "/home/tiny/workspace/trunk/server/bin/osv/expression.py", line 106, in _rec_get
return [(left, 'in', rg(ids, table, parent or table._parent_name))]
File "/home/tiny/workspace/trunk/server/bin/osv/expression.py", line 104, in rg
ids2 = table.search(cr, uid, [(parent, 'in', ids)], context=context)
File "/home/tiny/workspace/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/tiny/workspace/trunk/server/bin/osv/orm.py", line 4029, in _search
query = self._where_calc(cr, user, args, context=context)
File "/home/tiny/workspace/trunk/server/bin/osv/orm.py", line 3901, in _where_calc
where_clause, where_params = e.to_sql()
File "/home/tiny/workspace/trunk/server/bin/osv/expression.py", line 474, in to_sql
q, p = self.__leaf_to_sql(e, table)
File "/home/tiny/workspace/trunk/server/bin/osv/expression.py", line 400, in __leaf_to_sql
instr = ','.join([table._columns[left]._symbol_set[0]] * len_after)
KeyError: 'parent_id'
** Affects: openobject-addons
Importance: Medium
Assignee: OpenERP R&D Addons Team 1 (openerp-dev-addons1)
Status: Confirmed
--
project_planning : Failed to search user, KeyError: 'parent_id'
https://bugs.launchpad.net/bugs/669868
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: Confirmed
Bug description:
* Project/Long Term Planning/Plannings
* Form View :
* Time Encoding[Planning Lines]
* user_id (many2one): when you search for user following error appears:
Environment Information :
System : Linux-2.6.32-21-generic-i686-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-21-generic
Operating System Version : #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : en_IN.ISO8859-1
Python Version : 2.6.5
OpenERP-Client Version : 6.0.0-rc1-1
Last revision No. & ID :1664 launchpad_translations_on_behalf_of_openerp-20101102044939-6giqlf770q3jayaj
Traceback (most recent call last):
File "/home/tiny/workspace/trunk/server/bin/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/home/tiny/workspace/trunk/server/bin/service/web_services.py", line 586, in dispatch
res = fn(db, uid, *params)
File "/home/tiny/workspace/trunk/server/bin/osv/osv.py", line 57, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/tiny/workspace/trunk/server/bin/osv/osv.py", line 140, in execute
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/tiny/workspace/trunk/server/bin/osv/osv.py", line 130, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/tiny/workspace/trunk/server/bin/addons/base/res/res_user.py", line 372, in name_search
ids = self.search(cr, user, [('name',operator,name)]+ args, limit=limit)
File "/home/tiny/workspace/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/tiny/workspace/trunk/server/bin/osv/orm.py", line 4029, in _search
query = self._where_calc(cr, user, args, context=context)
File "/home/tiny/workspace/trunk/server/bin/osv/orm.py", line 3899, in _where_calc
e.parse(cr, user, self, context)
File "/home/tiny/workspace/trunk/server/bin/osv/expression.py", line 138, in parse
dom = _rec_get(right, working_table)
File "/home/tiny/workspace/trunk/server/bin/osv/expression.py", line 106, in _rec_get
return [(left, 'in', rg(ids, table, parent or table._parent_name))]
File "/home/tiny/workspace/trunk/server/bin/osv/expression.py", line 104, in rg
ids2 = table.search(cr, uid, [(parent, 'in', ids)], context=context)
File "/home/tiny/workspace/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/tiny/workspace/trunk/server/bin/osv/orm.py", line 4029, in _search
query = self._where_calc(cr, user, args, context=context)
File "/home/tiny/workspace/trunk/server/bin/osv/orm.py", line 3901, in _where_calc
where_clause, where_params = e.to_sql()
File "/home/tiny/workspace/trunk/server/bin/osv/expression.py", line 474, in to_sql
q, p = self.__leaf_to_sql(e, table)
File "/home/tiny/workspace/trunk/server/bin/osv/expression.py", line 400, in __leaf_to_sql
instr = ','.join([table._columns[left]._symbol_set[0]] * len_after)
KeyError: 'parent_id'
Follow ups
-
[Bug 669868] Re: project_planning : Failed to search user, KeyError: 'parent_id'
From: Sbh (Open ERP), 2010-11-15
-
[Bug 669868] Re: project_planning : Failed to search user, KeyError: 'parent_id'
From: atp(OpenERP), 2010-11-11
-
[Bug 669868] Re: project_planning : Failed to search user, KeyError: 'parent_id'
From: atp(OpenERP), 2010-11-11
-
[Bug 669868] Re: project_planning : Failed to search user, KeyError: 'parent_id'
From: tfr (Openerp), 2010-11-09
-
[Bug 669868] Re: project_planning : Failed to search user, KeyError: 'parent_id'
From: atp(OpenERP), 2010-11-03
-
[Bug 669868] Re: project_planning : Failed to search user, KeyError: 'parent_id'
From: Jas(OpenERP), 2010-11-02
-
[Bug 669868] [NEW] project_planning : Failed to search user, KeyError: 'parent_id'
From: Jas(OpenERP), 2010-11-02
References