Add missing context and fit guideline

This commit is contained in:
Cédric Krier committed 2008-11-14 23:54:47 +01:00
1 parent e9d563f0be
commit 98bcf86764
1 file changed
+3 -2
+3 -2
View File
@@ -101,9 +101,10 @@ class ActionKeyword(OSV):
def models_get(self, cursor, user, context=None):
model_obj = self.pool.get('ir.model')
model_ids = model_obj.search(cursor, user, [])
model_ids = model_obj.search(cursor, user, [], context=context)
res = []
for model in model_obj.browse(cursor, user, model_ids, context=context):
for model in model_obj.browse(cursor, user, model_ids,
context=context):
res.append([model.model, model.name])
return res