[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:
Thibault Delavallée 2014-03-20 16:08:55 +01:00
parent 97a6372937
commit 2bc87a67eb
1 changed files with 1 additions and 1 deletions

View File

@ -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)