KERNEL: fix update menu icon

bzr revid: ced-8b10222fc259ec5710404b358e03906a8204e545
This commit is contained in:
ced 2007-05-30 11:23:31 +00:00
parent a462c4badf
commit eaeba40955
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ class xml_import(object):
if view_id:
cr.execute('SELECT type FROM ir_ui_view WHERE id=%d', (int(view_id),))
action_mode, = cr.fetchone()
cr.execute('SELECT view_mode FROM ir_act_window_view WHERE view_id=%d ORDER BY sequence LIMIT 1', (int(a_id),))
cr.execute('SELECT view_mode FROM ir_act_window_view WHERE act_window_id=%d ORDER BY sequence LIMIT 1', (int(a_id),))
if cr.rowcount:
action_mode, = cr.fetchone()
if action_type=='tree':