Public release from ruodoo-project: 19.0 - 2026-05-31 21:19:12 UTC
This commit is contained in:
10
access_settings_menu/models.py
Normal file
10
access_settings_menu/models.py
Normal file
@ -0,0 +1,10 @@
|
||||
from odoo import api, models
|
||||
|
||||
|
||||
class ResUsers(models.Model):
|
||||
_inherit = "res.users"
|
||||
|
||||
@api.model
|
||||
def fields_get(self, *args, **kwargs):
|
||||
# switch to superuser to get access to virtual fields
|
||||
return super(ResUsers, self.sudo()).fields_get(*args, **kwargs)
|
||||
Reference in New Issue
Block a user