-
-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] base_export_async: send mail using mail template
module **base_export_async**: send mail using mail template for Asynchronous Export data Co-authored-by : vincent-cowboy <[email protected]>
- Loading branch information
Showing
3 changed files
with
45 additions
and
18 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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
<record id="delay_export_mail_template" model="mail.template"> | ||
<field name="name">Delay Export</field> | ||
<field | ||
name="subject" | ||
>Export ${object.model_description} ${datetime.date.today()}</field> | ||
<field name="model_id" ref="base_export_async.model_delay_export" /> | ||
<field name="auto_delete" eval="True" /> | ||
<field name="body_html" type="html"> | ||
<p>Your export is available <a href="${object.url}">here</a>.</p> | ||
<p>It will be automatically deleted the ${object.expiration_date}.</p> | ||
<br /> | ||
<p><span | ||
style="color: #808080;" | ||
>This is an automated message please do not reply.</span></p> | ||
</field> | ||
</record> | ||
</odoo> |
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