(self, message_dict)
return template._render({
            'body': body,
            'message': message_dict
        }, engine='ir.qweb', minimal_qcontext=True)
Get the body of the email return in case of bounced email.

        :param message_dict: dictionary of mail values
Get the body of the email return in case of bounced email.
Get the body of the email return in case of bounced email .
def _get_alias_bounced_body(self, message_dict):
        """Get the body of the email return in case of bounced email.

        :param message_dict: dictionary of mail values
        """
        lang_author = False
        if message_dict.get('author_id'):
            try:
                lang_author = self.env['res.partner'].browse(message_dict['author_id']).lang
            except:
                pass

        if lang_author:
            self = self.with_context(lang=lang_author)

        if not is_html_empty(self.alias_bounced_content):
            body = self.alias_bounced_content
        else:
            body = self._get_alias_bounced_body_fallback(message_dict)
        template = self.env.ref('mail.mail_bounce_alias_security', raise_if_not_found=True)
        return template._render({
            'body': body,
            'message': message_dict
        }, engine='ir.qweb', minimal_qcontext=True)
def _get_alias_bounced_body ( self , message_dict ) : lang_author = False if message_dict . get ( 'author_id' ) : try : lang_author = self . env [ 'res.partner' ] . browse ( message_dict [ 'author_id' ] ) . lang except : pass if lang_author : self = self . with_context ( lang = lang_author ) if not is_html_empty ( self . alias_bounced_content ) : body = self . alias_bounced_content else : body = self . _get_alias_bounced_body_fallback ( message_dict ) template = self . env . ref ( 'mail.mail_bounce_alias_security' , raise_if_not_found = True ) return template . _render ( { 'body' : body , 'message' : message_dict } , engine = 'ir.qweb' , minimal_qcontext = True )