prepare #I8NJ48 app_web_fullwidth优化全局设置 置顶

This commit is contained in:
Ivan Office
2023-12-12 02:24:40 +08:00
parent 66ed0dc276
commit d5471df36d
4 changed files with 22 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
import logging
from odoo import api, fields, models, _
from odoo.exceptions import UserError, ValidationError
_logger = logging.getLogger(__name__)
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
default_chatter_position = fields.Selection([
("auto", "Responsive"),
("bottom", "Bottom"),
("sided", "Sided"),
], string='Default Chatter Position', default="bottom", default_model="res.users")