Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
Updated base module
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:
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?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/4/16, 7:18 AM|
|Seen: 441 times|
|Last updated: 5/4/16, 7:52 AM|