I want an email to automatically appear in the chatter of a module after it was sent. I create the email by overriding
def _send_mail(self, answer):
res = super()._send_mail(answer)
email_values = {
"auto_delete": False,
"model": "survey.survey",
"res_id": self.survey_id.id,
}
res.update(email_values)
return res
How can I achieve the desired result? After the email was sent, it doesn't appear in the chatter of the survey. Thanks in advance!