You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
2.5 KiB
56 lines
2.5 KiB
# -*- coding: utf-8 -*-
|
|
#############################################################################
|
|
#
|
|
# Cybrosys Technologies Pvt. Ltd.
|
|
#
|
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
|
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
|
|
#
|
|
# You can modify it under the terms of the GNU LESSER
|
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
|
|
#
|
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
|
|
# (LGPL v3) along with this program.
|
|
# If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
#############################################################################
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResUser(models.Model):
|
|
"""
|
|
Model representing system users with additional customization options.
|
|
|
|
This model extends the base 'res.users' model to include additional fields
|
|
for customizing user interface preferences and system behavior.
|
|
"""
|
|
_inherit = 'res.users'
|
|
|
|
is_sidebar_enabled = fields.Boolean('Sidebar Enabled', default=False)
|
|
is_fullscreen_enabled = fields.Boolean('Full screen Enabled', default=False)
|
|
is_sidebar_icon = fields.Boolean('Sidebar icon Enabled', default=True)
|
|
is_sidebar_name = fields.Boolean('Sidebar name Enabled', default=True)
|
|
is_sidebar_company = fields.Boolean('Sidebar Company Enabled',
|
|
default=False)
|
|
is_sidebar_user = fields.Boolean('Sidebar User Enabled', default=False)
|
|
is_recent_apps = fields.Boolean('Recent Apps Enabled', default=False)
|
|
is_fullscreen_app = fields.Boolean('Full screen Apps Enabled',
|
|
default=False)
|
|
is_rtl = fields.Boolean('Rtl Enabled', default=False)
|
|
is_dark = fields.Boolean('Dark mode Enabled', default=False)
|
|
is_menu_bookmark = fields.Boolean('Menu Bookmark mode Enabled',
|
|
default=False)
|
|
is_chameleon = fields.Boolean('Chameleon mode Enabled', default=False)
|
|
dark_mode = fields.Selection([
|
|
('all', 'All'),
|
|
('schedule', 'Schedule'),
|
|
('auto', 'Automatic'),
|
|
], default='all')
|
|
dark_start = fields.Float('Dark Start', default=19.0)
|
|
dark_end = fields.Float('Dark End', default=5.0)
|
|
loader_class = fields.Char('Loader', default='default')
|
|
|