server-ux/base_user_locale/models/res_config_settings.py
2022-06-29 20:41:04 +02:00

15 lines
660 B
Python

# Copyright 2019 Brainbean Apps (https://brainbeanapps.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from flectra import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
date_format = fields.Char(related="company_id.date_format", readonly=False)
time_format = fields.Char(related="company_id.time_format", readonly=False)
week_start = fields.Selection(related="company_id.week_start", readonly=False)
decimal_point = fields.Char(related="company_id.decimal_point", readonly=False)
thousands_sep = fields.Char(related="company_id.thousands_sep", readonly=False)