forked from OCA/reporting-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] email template on sql_export_mail
- Loading branch information
1 parent
ff0d4f1
commit 66a68ec
Showing
1 changed file
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> |