Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
21768 Представления

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

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Автор

Thank you Yenthe

Автор Лучший ответ

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

Аватар
Отменить

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

Лучший ответ

in Settings-->Users

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

Following change will set user to superuser

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
янв. 17
3299
1
июл. 16
7881
1
апр. 23
3424
0
июн. 25
413
0
янв. 25
1547