← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 815903] [NEW] [TRUNK] survey KeyError: 'id'

 

Public bug reported:

Using server, web-client and addons from trunk on Ubuntu 11.04 with
python2.6, I installed survey module.

In Tools > Surveys > Define Surveys > Surveys, when I click on any
survey in the tree view, I get:

Traceback (most recent call last):
  File "/home/max/openerp/server/trunk/openerp/netsvc.py", line 440, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/max/openerp/server/trunk/openerp/service/web_services.py", line 588, in dispatch
    res = fn(db, uid, *params)
  File "/home/max/openerp/server/trunk/openerp/osv/osv.py", line 118, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/max/openerp/server/trunk/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/max/openerp/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/max/openerp/server/trunk/openerp/osv/orm.py", line 1994, in fields_view_get
    xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)
  File "/home/max/openerp/server/trunk/openerp/osv/orm.py", line 1656, in __view_look_dom_arch
    fields_def = self.__view_look_dom(cr, user, node, view_id, False, fields, context=context)
  File "/home/max/openerp/server/trunk/openerp/osv/orm.py", line 1605, in __view_look_dom
    fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
  File "/home/max/openerp/server/trunk/openerp/osv/orm.py", line 1605, in __view_look_dom
    fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
  File "/home/max/openerp/server/trunk/openerp/osv/orm.py", line 1558, in __view_look_dom
    field = model_fields[node.get('name')]
KeyError: 'id'

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


** Tags: survey trunk

-- 
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/815903

Title:
  [TRUNK] survey KeyError: 'id'

Status in OpenERP Modules (addons):
  New

Bug description:
  Using server, web-client and addons from trunk on Ubuntu 11.04 with
  python2.6, I installed survey module.

  In Tools > Surveys > Define Surveys > Surveys, when I click on any
  survey in the tree view, I get:

  Traceback (most recent call last):
    File "/home/max/openerp/server/trunk/openerp/netsvc.py", line 440, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/home/max/openerp/server/trunk/openerp/service/web_services.py", line 588, in dispatch
      res = fn(db, uid, *params)
    File "/home/max/openerp/server/trunk/openerp/osv/osv.py", line 118, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/max/openerp/server/trunk/openerp/osv/osv.py", line 172, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/max/openerp/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/max/openerp/server/trunk/openerp/osv/orm.py", line 1994, in fields_view_get
      xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)
    File "/home/max/openerp/server/trunk/openerp/osv/orm.py", line 1656, in __view_look_dom_arch
      fields_def = self.__view_look_dom(cr, user, node, view_id, False, fields, context=context)
    File "/home/max/openerp/server/trunk/openerp/osv/orm.py", line 1605, in __view_look_dom
      fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
    File "/home/max/openerp/server/trunk/openerp/osv/orm.py", line 1605, in __view_look_dom
      fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
    File "/home/max/openerp/server/trunk/openerp/osv/orm.py", line 1558, in __view_look_dom
      field = model_fields[node.get('name')]
  KeyError: 'id'

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/815903/+subscriptions


Follow ups

References