fix #I8H48V app_web_fullwidth将web_chatter_position的功能加入

This commit is contained in:
Chill
2023-12-08 16:09:24 +08:00
parent a575f5a547
commit d1d4e04440
7 changed files with 178 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
from odoo import fields, models
class ResUsers(models.Model):
_inherit = "res.users"
chatter_position = fields.Selection([
("auto", "Responsive"),
("bottom", "Bottom"),
("sided", "Sided"),
], default="auto",)
@property
def SELF_READABLE_FIELDS(self):
return super().SELF_READABLE_FIELDS + ["chatter_position"]
@property
def SELF_WRITEABLE_FIELDS(self):
return super().SELF_WRITEABLE_FIELDS + ["chatter_position"]