中国本土应用
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.

14 lines
388B

  1. # -*- coding: utf-8 -*-
  2. from odoo import api, fields, models, tools, SUPERUSER_ID, _
  3. class IrConfigParameter(models.Model):
  4. _inherit = "ir.config_parameter"
  5. @api.model
  6. def get_rainbow_params(self):
  7. params = self.sudo().search_read(
  8. [("key", "=like", "rainbow.%")], fields=["key", "value"], limit=None
  9. )
  10. return params if params else None
上海开阖软件有限公司 沪ICP备12045867号-1