Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3 Vastaukset
22282 Näkymät

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

Avatar
Hylkää
Paras vastaus

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
Hylkää
Tekijä

Thank you Yenthe

Tekijä Paras vastaus

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

Avatar
Hylkää

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

Paras vastaus

in Settings-->Users

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

Following change will set user to superuser

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
tammik. 17
3672
1
heinäk. 16
8213
1
huhtik. 23
3936
5
syysk. 25
14560
0
kesäk. 25
788