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.
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
4
4월 20
|
9031 | ||
|
1
11월 19
|
3937 | ||
|
3
10월 19
|
7776 | ||
|
2
2월 18
|
13942 | ||
|
0
1월 18
|
4254 |
@hilar AK : It worked! Thanks a lot...