Fix for new Pool singleton

This commit is contained in:
Cédric Krier committed 2011-07-20 19:09:44 +02:00
1 parent 4293af5cef
commit 79dd6c4e5a
1 file changed
+1 -1
+1 -1
View File
@@ -240,7 +240,7 @@ class ModelView(Model):
- action: a list of available actions
- relate: a list of available relations
"""
action_obj = self.pool.get('ir.action.keyword')
action_obj = Pool().get('ir.action.keyword')
prints = action_obj.get_keyword('form_print', (self._name, 0))
actions = action_obj.get_keyword('form_action', (self._name, 0))
relates = action_obj.get_keyword('form_relate', (self._name, 0))