Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odgovori
21751 Prikazi

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

Avatar
Opusti
Best Answer

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

Avatar
Opusti
Avtor

Thank you Yenthe

Avtor Best Answer

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

Avatar
Opusti

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

Best Answer

in Settings-->Users

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

Following change will set user to superuser

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
jan. 17
3291
1
jul. 16
7873
1
apr. 23
3416
0
jun. 25
387
0
jan. 25
1512