Odoo Help

Welcome!

This community 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.

2

superuser rights for another user

By
Yves Goldberg
on 7/28/15, 9:31 AM 1,598 views

How can i Grant the superuser rights for another, not admin user?

2

Yenthe

--Yenthe--
6706
| 7 7 8
Turnhout, Belgium
--Yenthe--

My Odoo blog: http://www.odoo.yenthevg.com/

My Twitter: https://twitter.com/Yenthe666

Yenthe
On 7/28/15, 9:38 AM

Hi Yves,

If you're talking about calling superuser rights for another user through Python:

 self.sudo(user.id)
self.sudo()   # This will use the SUPERUSER_ID by default
# or
self.env['res.partner'].sudo().create(vals)

There is some documentation about this, which you can find here: http://odoo-new-api-guide-line.readthedocs.org/en/latest/environment.html 
If you're talking about creating a new user, from the view, you should simply create a new user and grant it all rights under settings > users.

Yenthe

Thank you Yenthe

Ygol InternetWork, Yves Goldberg
on 7/28/15, 2:36 PM
1
Yves Goldberg
On 7/28/15, 9:39 AM

answer: I think that superuser user rights are granted when user_id = 1

If you're talking about the absolute admin account you're correct. It has user_id 1 and a lot is based on this.

Yenthe
on 7/28/15, 9:42 AM
0
sharjeel ali shaukat
On 7/28/15, 9:38 AM

in Settings-->Users

There is a drop down against Administration set that drop down to Settings

Following change will set user to superuser

Your Answer

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 7/28/15, 9:31 AM
Seen: 1598 times
Last updated: 3/17/16, 12:02 PM