From 75f9e53b979ac3fec7954c86c92b36a4d084e3b9 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Tue, 1 Jul 2008 16:03:17 +0000 Subject: [PATCH] Improvement menu name from wizard bzr revid: fp@tinyerp.com-193ae8a4ac1c8f8a2957dcd0df8551ee5ac45c04 --- bin/tools/convert.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/tools/convert.py b/bin/tools/convert.py index 1ea1013cadc..fe05a865c8f 100644 --- a/bin/tools/convert.py +++ b/bin/tools/convert.py @@ -475,6 +475,12 @@ form: module.record_id""" % (xml_id,) values['icon'] = 'STOCK_EXECUTE' if not values.get('name', False): values['name'] = action_name + elif a_type=='act_wizard': + a_id = self.id_get(cr, 'ir.actions.%s'% a_type, a_action) + cr.execute('select name from ir_act_wizard where id=%d', (int(a_id),)) + resw = cr.fetchone() + if (not values.get('name', False)) and resw: + values['name'] = resw[0] if rec.hasAttribute('sequence'): values['sequence'] = int(rec.getAttribute('sequence')) if rec.hasAttribute('icon'):