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.

17 lines
505 B

  1. # Copyright 2018 Tecnativa - Jairo Llopis
  2. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
  3. from odoo.models import api, Model
  4. from odoo.tools.safe_eval import const_eval
  5. class IrConfigParameter(Model):
  6. _inherit = "ir.config_parameter"
  7. @api.model
  8. def get_web_dialog_size_config(self):
  9. get_param = self.sudo().get_param
  10. return {
  11. key: const_eval(get_param("web_dialog_size.%s" % key, "False"))
  12. for key in ["default_maximize"]
  13. }