Skip to content
This repository was archived by the owner on Nov 14, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions muk_web_theme/models/res_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,16 @@ def _default_chatter_position(self):
# Setup
#----------------------------------------------------------

def __init__(self, pool, cr):
init_res = super(ResUsers, self).__init__(pool, cr)
theme_fields = ['sidebar_type', 'chatter_position']
readable_fields = list(self.SELF_READABLE_FIELDS)
writeable_fields = list(self.SELF_WRITEABLE_FIELDS)
readable_fields.extend(theme_fields)
writeable_fields.extend(theme_fields)
type(self).SELF_READABLE_FIELDS = readable_fields
type(self).SELF_WRITEABLE_FIELDS = writeable_fields
return init_res
@property
def SELF_READABLE_FIELDS(self):
return super().SELF_READABLE_FIELDS + [
'sidebar_type',
'chatter_position',
]

@property
def SELF_WRITEABLE_FIELDS(self):
return super().SELF_WRITEABLE_FIELDS + [
'sidebar_type',
'chatter_position'
]