← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 884161] [NEW] error in survey answers

 

Public bug reported:

chrome, trunk, survey

example

answer a survey, fill all info, done -> bug

Client Traceback (most recent call last):
  File "/home/aline/source/web/trunk/addons/web/common/http.py", line 154, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/home/aline/source/web/trunk/addons/web/controllers/main.py", line 873, in load
    return self.fields_view_get(req, model, view_id, view_type, toolbar=toolbar)
  File "/home/aline/source/web/trunk/addons/web/controllers/main.py", line 763, in fields_view_get
    fvg = Model.fields_view_get(view_id, view_type, context, toolbar, submenu)
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 417, in proxy
    *args)
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 294, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 264, in send
    raise fault


Server Traceback (most recent call last):
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 245, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/aline/source/server/trunk/openerp/netsvc.py", line 325, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/aline/source/server/trunk/openerp/service/web_services.py", line 580, in dispatch
    res = fn(db, uid, *params)
  File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/aline/source/addons/trunk/survey/wizard/survey_answer.py", line 413, in fields_view_get
    address_id = user_obj.browse(cr, uid, uid).address_id.id
  File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 484, in __getattr__
    raise AttributeError(e)
AttributeError: "Field 'address_id' does not exist in object 'browse_record(res.users, 1)'"

** Affects: openerp-web
     Importance: Undecided
         Status: New

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

Title:
  error in survey answers

Status in OpenERP Web:
  New

Bug description:
  chrome, trunk, survey

  example

  answer a survey, fill all info, done -> bug

  Client Traceback (most recent call last):
    File "/home/aline/source/web/trunk/addons/web/common/http.py", line 154, in dispatch
      response["result"] = method(controller, self, **self.params)
    File "/home/aline/source/web/trunk/addons/web/controllers/main.py", line 873, in load
      return self.fields_view_get(req, model, view_id, view_type, toolbar=toolbar)
    File "/home/aline/source/web/trunk/addons/web/controllers/main.py", line 763, in fields_view_get
      fvg = Model.fields_view_get(view_id, view_type, context, toolbar, submenu)
    File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 417, in proxy
      *args)
    File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 294, in proxy
      result = self.connector.send(self.service_name, method, *args)
    File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 264, in send
      raise fault

  
  Server Traceback (most recent call last):
    File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 245, in send
      result = openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/home/aline/source/server/trunk/openerp/netsvc.py", line 325, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/home/aline/source/server/trunk/openerp/service/web_services.py", line 580, in dispatch
      res = fn(db, uid, *params)
    File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 120, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 172, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/aline/source/addons/trunk/survey/wizard/survey_answer.py", line 413, in fields_view_get
      address_id = user_obj.browse(cr, uid, uid).address_id.id
    File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 484, in __getattr__
      raise AttributeError(e)
  AttributeError: "Field 'address_id' does not exist in object 'browse_record(res.users, 1)'"

To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-web/+bug/884161/+subscriptions


Follow ups

References