[IMP]added chatter notification for email sent to attendee(s).

bzr revid: ishwarmalvi13@gmail.com-20130826131510-ab0sluzt0no6vr6h
This commit is contained in:
ishwar.malvi-openerp
2013-08-26 18:45:10 +05:30
parent f6b5d5879d
commit ff444b7040
+5 -1
View File
@@ -1041,8 +1041,12 @@ rule or repeating pattern of time to exclude from the recurring rule."),
new_attendees.append(att_id)
if mail_to and current_user.email:
att_obj._send_mail(cr, uid, new_attendees, mail_to,
is_sent_mail = att_obj._send_mail(cr, uid, new_attendees, mail_to,
email_from = current_user.email, context=context)
if is_sent_mail:
meeting_obj = self.pool.get('crm.meeting')
meeting_id = meeting_obj.search(cr, uid, [('attendee_ids','in',new_attendees)],context = context)
meeting_obj.message_post(cr, uid, meeting_id, body=_("An invitation email has been sent to attendee(s)"), context=context)
return True
def default_organizer(self, cr, uid, context=None):