mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] web_dark_mode: Add fields to field lists
This commit is contained in:
@@ -10,3 +10,17 @@ class ResUsers(models.Model):
|
|||||||
|
|
||||||
dark_mode = fields.Boolean()
|
dark_mode = fields.Boolean()
|
||||||
dark_mode_device_dependent = fields.Boolean("Device Dependent Dark Mode")
|
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",
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user