mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_chatter_position: Migration to 16.0
This commit is contained in:
@@ -8,12 +8,14 @@ class ResUsers(models.Model):
|
||||
_inherit = "res.users"
|
||||
|
||||
chatter_position = fields.Selection(
|
||||
[("bottom", "Bottom"), ("sided", "Sided")],
|
||||
default="sided",
|
||||
[
|
||||
("auto", "Responsive"),
|
||||
("bottom", "Bottom"),
|
||||
("sided", "Sided"),
|
||||
],
|
||||
default="auto",
|
||||
)
|
||||
|
||||
# Override so that the user can change the chatter_position field
|
||||
|
||||
@property
|
||||
def SELF_READABLE_FIELDS(self):
|
||||
return super().SELF_READABLE_FIELDS + ["chatter_position"]
|
||||
|
||||
Reference in New Issue
Block a user