コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4874 ビュー

I have a custom module with models that inherit from res.users. When I open the res.users.form with the Odoo admin account everything works fine, but when I open it with another user I get the following error:

File "\Odoo 8.0-20160215\server\openerp\addons\base\ir\ir_ui_view.py", line 360, in raise_view_error
AttributeError: Field `sel_groups_249_250` 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 have tried the following:

Adding 'share' to depends in module.
https://www.odoo.com/nl_NL/forum/help-1/question/attributeerror-field-sel-groups-5-14-15-does-not-exist-90310

Updated base module
https://github.com/odoo/odoo/issues/5820

None of the above worked

アバター
破棄
著作者 最善の回答

I can't edit my post (error 403 forbidden), so I have to post new information here...

When I use the debug mode (web?debug) and I take a look at the res.users model fields with the admin user I can see the following:

sel_groups_249_250
selection
[[false,""],[249,"Student"],[250,"Administrator"]]
exportable
false
string
Leerlingvolgsysteem
selectable
false
type
selection
help

I can't see this field when I use debug with another user than admin.


When I give add the user to the Access rights role under Administration the form loads correctly, but the user also gets access to the website settings and can create, edit and delete users. How I can prevent this?

アバター
破棄
関連投稿 返信 ビュー 活動
1
11月 24
2568
1
10月 17
15059
2
10月 17
6248
2
12月 16
11082
8
8月 15
16104