[IMP] Add condition in calendar_event to avoid to send email to oneself

bzr revid: jke@openerp.com-20140310112851-d59a9diz80dgb0ke
This commit is contained in:
Kersten Jeremy 2014-03-10 12:28:51 +01:00
parent cd8b44a492
commit ac8048939d
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ class calendar_attendee(osv.Model):
})
for attendee in self.browse(cr, uid, ids, context=context):
if attendee.email and email_from:
if attendee.email and email_from and attendee.email != email_from:
ics_file = self.get_ics_file(cr, uid, attendee.event_id, context=context)
mail_id = template_pool.send_mail(cr, uid, template_id, attendee.id, context=local_context)