[IMP] mail.group: updated client action description when writing on description, name, or the alias.
bzr revid: tde@openerp.com-20121224131922-v3rzft5mma8ppy1f
This commit is contained in:
parent
68872e1175
commit
82fbb9411a
|
@ -175,8 +175,8 @@ class mail_group(osv.Model):
|
|||
result = super(mail_group, self).write(cr, uid, ids, vals, context=context)
|
||||
if vals.get('group_ids'):
|
||||
self._subscribe_users(cr, uid, ids, context=context)
|
||||
# if description is changed: update client action
|
||||
if vals.get('description'):
|
||||
# if description, name or alias is changed: update client action
|
||||
if vals.get('description') or vals.get('name') or vals.get('alias_id') or vals.get('alias_name'):
|
||||
cobj = self.pool.get('ir.actions.client')
|
||||
for action in [group.menu_id.action for group in self.browse(cr, uid, ids, context=context)]:
|
||||
new_params = action.params
|
||||
|
|
Loading…
Reference in New Issue