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.
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
4
apr 20
|
8550 | ||
how to use field from same model
Risolto
|
|
1
nov 19
|
3610 | |
|
3
ott 19
|
7312 | ||
|
2
feb 18
|
13404 | ||
|
0
gen 18
|
4088 |
@hilar AK : It worked! Thanks a lot...