self.sudo().create() bypasses the access rights from the logged in user to admin.
How to retain the logged in user rights once the record set is created ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
self.sudo().create() bypasses the access rights from the logged in user to admin.
How to retain the logged in user rights once the record set is created ?
In default using sudo() function By default, this returns a `SUPERUSER` recordset, where access control and record rules are bypassed. You can pass your user id in sudo() function and can retain as logged user access right.
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
4
เม.ย. 20
|
9021 | ||
how to use field from same model
แก้ไขแล้ว
|
|
1
พ.ย. 19
|
3929 | |
|
3
ต.ค. 19
|
7753 | ||
|
2
ก.พ. 18
|
13907 | ||
|
0
ม.ค. 18
|
4251 |
@hilar AK : It worked! Thanks a lot...