[IMP] mail_group: as they are now mailing list, avoid having automatic
creation message, this is quite ugly. bzr revid: tde@openerp.com-20140320150855-a0ich2zgzn320wj0
This commit is contained in:
parent
97a6372937
commit
2bc87a67eb
|
@ -126,7 +126,7 @@ class mail_group(osv.Model):
|
|||
vals['menu_id'] = menu_id
|
||||
|
||||
# Create group and alias
|
||||
create_context = dict(context, alias_model_name=self._name, alias_parent_model_name=self._name)
|
||||
create_context = dict(context, alias_model_name=self._name, alias_parent_model_name=self._name, mail_create_nolog=True)
|
||||
mail_group_id = super(mail_group, self).create(cr, uid, vals, context=create_context)
|
||||
group = self.browse(cr, uid, mail_group_id, context=context)
|
||||
self.pool.get('mail.alias').write(cr, uid, [group.alias_id.id], {"alias_force_thread_id": mail_group_id, 'alias_parent_thread_id': mail_group_id}, context)
|
||||
|
|
Loading…
Reference in New Issue