server-ux/base_user_locale/models/res_config_settings.py

15 lines
660 B
Python
Raw Permalink Normal View History

2022-06-29 18:41:04 +00:00
# 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)