Tokiniaina 43a909e17f
Some checks failed
ci / main (push) Failing after 3m44s
Add configuration and somme OCA source
2024-10-24 11:18:15 +03:00

38 lines
935 B
Python

from odoo import models, fields, api
class ResUsers(models.Model):
_inherit = 'res.users'
#----------------------------------------------------------
# Properties
#----------------------------------------------------------
@property
def SELF_READABLE_FIELDS(self):
return super().SELF_READABLE_FIELDS + [
'sidebar_type',
]
@property
def SELF_WRITEABLE_FIELDS(self):
return super().SELF_WRITEABLE_FIELDS + [
'sidebar_type',
]
#----------------------------------------------------------
# Fields
#----------------------------------------------------------
sidebar_type = fields.Selection(
selection=[
('invisible', 'Invisible'),
('small', 'Small'),
('large', 'Large')
],
string="Sidebar Type",
default='large',
required=True,
)