-
-
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.
[IMP] base_export_async: send mail using mail template
module **base_export_async**: send mail using mail template for Asynchronous Export data
- Loading branch information
Showing
3 changed files
with
44 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,24 @@ | ||
<?xml version="1.0" ?> | ||
<odoo> | ||
<data noupdate="1"> | ||
<!--Email template for Asynchronous Export of a file sent by email --> | ||
<record id="email_template_delay_export" model="mail.template"> | ||
<field name="name">Asynchronous Export</field> | ||
<field name="model_id" ref="base_export_async.model_delay_export" /> | ||
<field name="email_from">${object.env.ref('base.partner_root').email}</field> | ||
<field name="reply_to">${object.env.ref('base.partner_root').email}</field> | ||
<field name="subject">Export ${ctx.get('model_description')} ${datetime.datetime.now().strftime('%d/%m/%Y')}</field> | ||
<field name="body_html"> | ||
<![CDATA[ | ||
<p>Your export is available <a href="${ctx.get('url')}">here</a>.</p> | ||
<p>It will be automatically deleted on ${ctx.get('expiration_date')}.</p> | ||
<p> </p> | ||
<p><span style="color: #808080;">This is an automated message. Please do not reply.</span></p> | ||
]]> | ||
</field> | ||
<field name="lang">${object.env.user.lang}</field> | ||
<field name="user_signature" eval="False" /> | ||
<field name="auto_delete" eval="True" /> | ||
</record> | ||
</data> | ||
</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