from odoo import fields, models DEFAULT_PRIMARY_COLOR = '#2C3E50' DEFAULT_SECONDARY_COLOR = '#7F8C8D' DEFAULT_ACCENT_COLOR = '#3498DB' DEFAULT_FONT = 'Inter, sans-serif' class ResConfigSettings(models.TransientModel): _inherit = 'res.config.settings' theme_primary_color = fields.Char( string='Primary Colour', config_parameter='community_theme_base.primary_color', default=DEFAULT_PRIMARY_COLOR, ) theme_secondary_color = fields.Char( string='Secondary Colour', config_parameter='community_theme_base.secondary_color', default=DEFAULT_SECONDARY_COLOR, ) theme_accent_color = fields.Char( string='Accent Colour', config_parameter='community_theme_base.accent_color', default=DEFAULT_ACCENT_COLOR, ) theme_logo = fields.Binary( string='Logo', config_parameter='community_theme_base.logo', help="Shown in the website navbar and on generated PDF reports/cards. " "Falls back to the company logo if not set.", ) theme_heading_font = fields.Char( string='Heading Font', config_parameter='community_theme_base.heading_font', default=DEFAULT_FONT, ) theme_body_font = fields.Char( string='Body Font', config_parameter='community_theme_base.body_font', default=DEFAULT_FONT, )