Skip to content
Snippets Groups Projects
Commit 37201325 authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Allow keyword action for all models

issue9450
review325681002
parent 31782945
No related merge requests found
* Allow keyword action for all models
* Add sortable_values in tools
* Remove default colors on graph and calendar
* Add model, record and records attributes on Wizard
......
......@@ -204,7 +204,7 @@
def models_get():
pool = Pool()
Model = pool.get('ir.model')
return [(m.model, m.name) for m in Model.search([])]
return [(None, '')] + [(m.model, m.name) for m in Model.search([])]
@classmethod
def delete(cls, keywords):
......@@ -246,7 +246,10 @@
clause = [
('keyword', '=', keyword),
('model', '=', model + ',-1'),
['OR',
('model', '=', model + ',-1'),
('model', '=', None),
],
]
if model_id >= 0:
clause = ['OR',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment