[MIG] web_chatter_position: Migration to 16.0

This commit is contained in:
Ivàn Todorovich
2023-02-27 12:27:37 -03:00
parent 6e15f0a95c
commit 2d8e8d2001
15 changed files with 191 additions and 493 deletions

View File

@@ -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"]