Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
20899 มุมมอง

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
2636
1
ก.ค. 16
7250
1
เม.ย. 23
2609
0
ม.ค. 25
598
0
ม.ค. 25
492