Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
21646 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

Thank you Yenthe

Autor Najlepsza odpowiedź

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

Awatar
Odrzuć

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

Najlepsza odpowiedź

in Settings-->Users

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

Following change will set user to superuser

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sty 17
3172
1
lip 16
7745
1
kwi 23
3338
0
cze 25
312
0
sty 25
1414