← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 669868] Re: project_planning : Failed to search user, KeyError: 'parent_id'

 

** Changed in: openobject-addons
    Milestone: None => 6.0-rc2

-- 
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: In Progress

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'





References