diff options
| author | Fabien Pinckaers <fp@tinyerp.com> | 2008-07-01 16:03:17 +0000 |
|---|---|---|
| committer | Fabien Pinckaers <fp@tinyerp.com> | 2008-07-01 16:03:17 +0000 |
| commit | 75f9e53b979ac3fec7954c86c92b36a4d084e3b9 (patch) | |
| tree | fcd9b7f22ca752421acab89e3eec0e6039e655c0 /bin/tools | |
| parent | 4bb0246a563e44973e248e6d1f7c22133ec2a98b (diff) | |
Improvement menu name from wizard
bzr revid: fp@tinyerp.com-193ae8a4ac1c8f8a2957dcd0df8551ee5ac45c04
Diffstat (limited to 'bin/tools')
| -rw-r--r-- | bin/tools/convert.py | 6 |
1 files changed, 6 insertions, 0 deletions
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'): |
