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
|
10557 | |||
|
how to use field from same model
แก้ไขแล้ว
|
1
พ.ย. 19
|
4924 | ||
|
3
ต.ค. 19
|
8970 | |||
|
2
ก.พ. 18
|
15743 | |||
|
0
ม.ค. 18
|
4942 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
@hilar AK : It worked! Thanks a lot...