Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,15 @@ def generate_mail_vals(self):
{
"subject": self.mail_subject,
"body_html": self.mail_body,
# the body field is normally set automatically in
# mail.template.generate_email() when "body_html" is in the
# provided list of fields, but here, body_html is computed in
# ._compute_counter_and_mail() by calling
# mail.template._render_template() directly. because of this,
# it must be set here, otherwise the body of the mail.message
# would be empty (although the body of the sent mail.mail
# would not).
"body": tools.html_sanitize(self.mail_body),
"email_cc": ", ".join(cc_list),
"model": "res.partner",
"res_id": self.commercial_partner_id.id,
Expand Down