mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
22 lines
543 B
Python
22 lines
543 B
Python
# -*- 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"),
|
|
], string='Chatter Position', default="bottom")
|
|
|
|
@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"]
|