Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
21732 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor

Thank you Yenthe

Autor Cel mai bun răspuns

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

Imagine profil
Abandonează

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

Cel mai bun răspuns

in Settings-->Users

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

Following change will set user to superuser

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
ian. 17
3267
1
iul. 16
7832
1
apr. 23
3402
0
iun. 25
384
0
ian. 25
1474