[FIX]:context of action should be passed in fields_view_get when calling it for search view

bzr revid: nch@tinyerp.com-20100728065929-2wkmfydqbqh9m9xi
This commit is contained in:
nch@tinyerp.com 2010-07-28 12:29:29 +05:30
parent 425e5b5faa
commit efb00ba622
1 changed files with 1 additions and 0 deletions

View File

@ -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: