How can i Grant the superuser rights for another, not admin user?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
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 |