Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
21921 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

Thank you Yenthe

Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

in Settings-->Users

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

Following change will set user to superuser

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 17
3394
1
thg 7 16
7987
1
thg 4 23
3575
5
thg 9 25
13642
0
thg 6 25
536