[MERGE] Fix bug 901601, add default GTK icon for kanban/gantt actions

bzr revid: odo@openerp.com-20111213120225-o264d1wgwgz4ztvt
This commit is contained in:
Olivier Dony 2011-12-13 13:02:25 +01:00
commit 295cd51e38
1 changed files with 1 additions and 1 deletions

View File

@ -638,7 +638,7 @@ form: module.record_id""" % (xml_id,)
action_mode, = cr.fetchone()
if action_type=='tree':
values['icon'] = 'STOCK_INDENT'
elif action_mode and action_mode.startswith('tree'):
elif action_mode and action_mode.startswith(('tree','kanban','gantt')):
values['icon'] = 'STOCK_JUSTIFY_FILL'
elif action_mode and action_mode.startswith('graph'):
values['icon'] = 'terp-graph'