This question has been flagged
3 Replies
5655 Views


Traceback (most recent call last):

File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 530, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 567, in dispatch

result = self._call_function(**self.params)

File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 303, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 113, in wrapper

return f(dbname, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 300, in checked_call

return self.endpoint(*a, **kw)

File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 796, in __call__

return self.method(*args, **kw)

File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 396, in response_wrap

response = f(*args, **kw)

File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 936, in call_kw

return self._call_kw(model, method, args, kwargs)

File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 928, in _call_kw

return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 1544, in fields_view_get

xarch, xfields = View.postprocess_and_fields(cr, uid, self._name, etree.fromstring(result['arch']), view_id, context=ctx)

File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_ui_view.py", line 844, in postprocess_and_fields

self.raise_view_error(cr, user, message, view_id, context)

File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_ui_view.py", line 369, in raise_view_error

raise AttributeError(message)

AttributeError: Field `in_group_15` does not exist

Error context:

View `res.users.form`

[view_id: 153, xml_id: base.view_users_form, model: res.users, parent_id: n/a]



I get this error after I try to click on any user on Users option.


Can anybody help me debug this? I had similar error like this and I had to restore database which I do not intend to do every time i get small errors like this.

 

Avatar
Discard
Best Answer

I had the same issue after upgrading another module. I discovered a post where it was suggested that upgrading the Base Module was the elegant way to resolve this. It worked for me.

1. Click on Settings.
2. Click on Local Modules.
2.1 Remove the 'Apps' tag top right.
2.2 Create a 'Base' tag top right.
3. Click on the Base module.
4. Click on the upgrade button.
4.1 Wait a fair while. Ignore any messages saying timeout.
5. When you can log back clicking on settings...users..userName now works.


Avatar
Discard
Best Answer

Sanjin, Brad, the stack-trace reveals you are having problems rendering the default form-view for users (`base.view_users_form`) in Odoo v8.

This is a very particular view where the many2many `groups_id` field is transformed by python code (overriding ORM and view related methods) into many virtual fields that appear under "Access Rights" (selection and boolean fields for all the available groups, grouped by "Application"). The bug arises at rendering these fields.

Please see the following Odoo issue at GitHub, it may provide a fix for this problem:

https://github.com/odoo/odoo/issues/6324 

If that's not the case, I'm afraid we won't be able to help you without more information like the list of installed modules (thirty party included) and any other hints like any customized modules.

Regards.

Avatar
Discard
Best Answer

Sanjin,

Did you ever find a solution to this error?  I am getting the exact same error!

Brad

Avatar
Discard