Merge PR #2662 into 16.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2023-11-08 14:54:56 +00:00

View File

@@ -10,3 +10,17 @@ class ResUsers(models.Model):
dark_mode = fields.Boolean()
dark_mode_device_dependent = fields.Boolean("Device Dependent Dark Mode")
@property
def SELF_READABLE_FIELDS(self):
return super().SELF_READABLE_FIELDS + [
"dark_mode_device_dependent",
"dark_mode",
]
@property
def SELF_WRITEABLE_FIELDS(self):
return super().SELF_WRITEABLE_FIELDS + [
"dark_mode_device_dependent",
"dark_mode",
]