Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
1
web_chatter_position/models/__init__.py
Executable file
1
web_chatter_position/models/__init__.py
Executable file
@@ -0,0 +1 @@
|
||||
from . import res_users
|
||||
25
web_chatter_position/models/res_users.py
Executable file
25
web_chatter_position/models/res_users.py
Executable file
@@ -0,0 +1,25 @@
|
||||
# Copyright 2022 Hynsys Technologies
|
||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
|
||||
|
||||
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"]
|
||||
Reference in New Issue
Block a user