Files
gsinghpal e9cf75ee48 changes
2026-03-14 12:04:20 -04:00

32 lines
777 B
Python

# -*- coding: utf-8 -*-
# Copyright 2024-2026 Nexa Systems Inc.
# License OPL-1
from odoo import fields, models
class ResUsers(models.Model):
_inherit = 'res.users'
chatter_position = fields.Selection(
selection=[
('side', 'Side (right of form)'),
('bottom', 'Bottom (below form)'),
],
string='Chatter Position',
default='side',
)
chatter_hidden = fields.Boolean(
string='Chatter Hidden',
default=False,
)
@property
def SELF_READABLE_FIELDS(self):
return super().SELF_READABLE_FIELDS + ['chatter_position', 'chatter_hidden']
@property
def SELF_WRITEABLE_FIELDS(self):
return super().SELF_WRITEABLE_FIELDS + ['chatter_position', 'chatter_hidden']