コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
21858 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
1月 17
3351
1
7月 16
7926
1
4月 23
3481
0
6月 25
470
0
1月 25
1584