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.

12 lines
429 B

  1. from odoo import api, models
  2. class IrConfigParameter(models.Model):
  3. _inherit = 'ir.config_parameter'
  4. @api.model
  5. def get_web_m2x_options(self):
  6. opts = ['web_m2x_options.create', 'web_m2x_options.create_edit',
  7. 'web_m2x_options.limit', 'web_m2x_options.search_more',
  8. 'web_m2x_options.m2o_dialog']
  9. return self.sudo().search_read([['key', 'in', opts]], ["key", "value"])