From efb00ba622cb4c8fd2d96bfaa30d972c8cc873b5 Mon Sep 17 00:00:00 2001 From: "nch@tinyerp.com" <> Date: Wed, 28 Jul 2010 12:29:29 +0530 Subject: [PATCH] [FIX]:context of action should be passed in fields_view_get when calling it for search view bzr revid: nch@tinyerp.com-20100728065929-2wkmfydqbqh9m9xi --- bin/addons/base/ir/ir_actions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/addons/base/ir/ir_actions.py b/bin/addons/base/ir/ir_actions.py index 3b51af26f53..52322d0eee6 100644 --- a/bin/addons/base/ir/ir_actions.py +++ b/bin/addons/base/ir/ir_actions.py @@ -169,6 +169,7 @@ class act_window(osv.osv): return s.encode('utf8') return s for act in self.browse(cr, uid, ids): + context.update(eval(act.context, context.copy())) fields_from_fields_get = self.pool.get(act.res_model).fields_get(cr, uid, context=context) search_view_id = False if act.search_view_id: