Improvement menu name from wizard
bzr revid: fp@tinyerp.com-193ae8a4ac1c8f8a2957dcd0df8551ee5ac45c04
This commit is contained in:
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user