summaryrefslogtreecommitdiff
path: root/bin/tools
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@tinyerp.com>2008-06-25 05:37:04 +0000
committerFabien Pinckaers <fp@tinyerp.com>2008-06-25 05:37:04 +0000
commitf90b7ac2b456f0997e2ce19c28d1007745c19dee (patch)
treee40b737fd2b53a1dbe38d771b461fa5cb66f9af5 /bin/tools
parent47c5b23256b6d92c02b79d05448f8dfc81e3401a (diff)
Modifs for menu wizards icons
bzr revid: fp@tinyerp.com-35ac891b0c74187970f620a6991d688b2b2c5ead
Diffstat (limited to 'bin/tools')
-rw-r--r--bin/tools/convert.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/tools/convert.py b/bin/tools/convert.py
index 024275e983f..1ea1013cadc 100644
--- a/bin/tools/convert.py
+++ b/bin/tools/convert.py
@@ -455,8 +455,8 @@ form: module.record_id""" % (xml_id,)
values['icon'] = icons.get(a_type,'STOCK_NEW')
if a_type=='act_window':
a_id = self.id_get(cr, 'ir.actions.%s'% a_type, a_action)
- cr.execute('select view_type,view_mode,name,view_id from ir_act_window where id=%d', (int(a_id),))
- action_type,action_mode,action_name,view_id = cr.fetchone()
+ cr.execute('select view_type,view_mode,name,view_id,target from ir_act_window where id=%d', (int(a_id),))
+ action_type,action_mode,action_name,view_id,target = cr.fetchone()
if view_id:
cr.execute('SELECT type FROM ir_ui_view WHERE id=%d', (int(view_id),))
action_mode, = cr.fetchone()
@@ -471,6 +471,8 @@ form: module.record_id""" % (xml_id,)
values['icon'] = 'terp-graph'
elif action_mode and action_mode.startswith('calendar'):
values['icon'] = 'terp-calendar'
+ if target=='new':
+ values['icon'] = 'STOCK_EXECUTE'
if not values.get('name', False):
values['name'] = action_name
if rec.hasAttribute('sequence'):