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.
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
4
Nis 20
|
8555 | ||
how to use field from same model
Çözüldü
|
|
1
Kas 19
|
3614 | |
|
3
Eki 19
|
7314 | ||
|
2
Şub 18
|
13413 | ||
|
0
Oca 18
|
4089 |
@hilar AK : It worked! Thanks a lot...