[IMP]:added default icon for kanban and gantt view
authorNaresh (OpenERP) <nch@tinyerp.com>
Fri, 9 Dec 2011 11:13:36 +0000 (16:43 +0530)
committerNaresh (OpenERP) <nch@tinyerp.com>
Fri, 9 Dec 2011 11:13:36 +0000 (16:43 +0530)
lp bug: https://launchpad.net/bugs/901601 fixed

bzr revid: nch@tinyerp.com-20111209111336-8sqgc9z9ska1yer8

openerp/tools/convert.py

index 66522f4..cad34d0 100644 (file)
@@ -638,7 +638,9 @@ 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') 
+                                       or  action_mode.startswith('kanban') 
+                                       or  action_mode.startswith('gantt')):
                     values['icon'] = 'STOCK_JUSTIFY_FILL'
                 elif action_mode and action_mode.startswith('graph'):
                     values['icon'] = 'terp-graph'