mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_m2x_options: black, isort
This commit is contained in:
committed by
Germana
parent
cd90794502
commit
80db8b97e3
@@ -2,11 +2,15 @@ from odoo import api, models
|
||||
|
||||
|
||||
class IrConfigParameter(models.Model):
|
||||
_inherit = 'ir.config_parameter'
|
||||
_inherit = "ir.config_parameter"
|
||||
|
||||
@api.model
|
||||
def get_web_m2x_options(self):
|
||||
opts = ['web_m2x_options.create', 'web_m2x_options.create_edit',
|
||||
'web_m2x_options.limit', 'web_m2x_options.search_more',
|
||||
'web_m2x_options.m2o_dialog']
|
||||
return self.sudo().search_read([['key', 'in', opts]], ["key", "value"])
|
||||
opts = [
|
||||
"web_m2x_options.create",
|
||||
"web_m2x_options.create_edit",
|
||||
"web_m2x_options.limit",
|
||||
"web_m2x_options.search_more",
|
||||
"web_m2x_options.m2o_dialog",
|
||||
]
|
||||
return self.sudo().search_read([["key", "in", opts]], ["key", "value"])
|
||||
|
||||
Reference in New Issue
Block a user