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.
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
|
4
Apr. 20
|
9017 | ||
|
1
Nov. 19
|
3929 | ||
|
3
Okt. 19
|
7743 | ||
|
2
Feb. 18
|
13897 | ||
|
0
Jan. 18
|
4248 |
@hilar AK : It worked! Thanks a lot...