Se rendre au contenu
Menu
Cette question a été signalée
3 Réponses
21847 Vues

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

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Auteur

Thank you Yenthe

Auteur Meilleure réponse

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

Avatar
Ignorer

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

Meilleure réponse

in Settings-->Users

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

Following change will set user to superuser

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
janv. 17
3347
1
juil. 16
7917
1
avr. 23
3476
0
juin 25
458
0
janv. 25
1583