Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
3 Respostas
21824 Visualizações

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

Avatar
Cancelar
Melhor resposta

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
Cancelar
Autor

Thank you Yenthe

Autor Melhor resposta

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

Avatar
Cancelar

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

Melhor resposta

in Settings-->Users

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

Following change will set user to superuser

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
jan. 17
3335
1
jul. 16
7897
1
abr. 23
3472
0
jun. 25
434
0
jan. 25
1573