[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:
Olivier Dony
2010-12-06 14:19:28 +01:00
parent 6f0660eaa0
commit 9b25bd6eb4
-6
View File
@@ -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: