[FIX] ir_values: revert GTK-specific hack for search_view_id after GTK client was fixed
bzr revid: odo@openerp.com-20101206131928-2ew6lqe1lz55vwh1
This commit is contained in:
@@ -204,12 +204,6 @@ class ir_values(osv.osv):
|
||||
datas = datas and datas[0]
|
||||
if not datas:
|
||||
return False
|
||||
if model == 'ir.actions.act_window' \
|
||||
and 'search_view_id' in datas \
|
||||
and datas['search_view_id']:
|
||||
# GTK client has a bug, where it expects only the integer id
|
||||
# rather than [id, name] (of many2one fields)
|
||||
datas['search_view_id'] = datas['search_view_id'][0]
|
||||
else:
|
||||
datas = pickle.loads(x[2].encode('utf-8'))
|
||||
if meta:
|
||||
|
||||
Reference in New Issue
Block a user