Skip to content

Commit

Permalink
[FIX] email template on sql_export_mail
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-dacosta committed Feb 22, 2023
1 parent ff0d4f1 commit 66a68ec
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions sql_export_mail/data/mail_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,21 @@
<record id="sql_export_mailer" model="mail.template">
<field name="name">SQL Export</field>
<field name="email_from">[email protected]</field>
<field name="email_to">${object.get_email_address_for_template()}</field>
<field name="subject">${object.name or ''}</field>
<field name="email_to">{{object.get_email_address_for_template()}}</field>
<field name="subject">{{object.name or ''}}</field>
<field name="model_id" ref="sql_export.model_sql_export" />
<field name="auto_delete" eval="True" />
<field
name="body_html"
><![CDATA[
<div style="font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
<field name="body_html" type="html">
<div
style="font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; "
>

<p>You will find the report ${object.name or ''} as an attachment of the mail.</p>
<p>You will find the report <t
t-out="object.name or ''"
/> as an attachment of the mail.</p>

</div>
]]></field>
</field>
</record>

</odoo>

0 comments on commit 66a68ec

Please sign in to comment.