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.
[IMP] sql_export_mail : Add migration script to fix email template
- Loading branch information
1 parent
66a68ec
commit 755bd3b
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
sql_export_mail/migrations/16.0.1.0.0/noupdate_changes.xml
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> | ||
|
||
<record id="sql_export_mailer" model="mail.template"> | ||
<field name="email_to">{{object.get_email_address_for_template()}}</field> | ||
<field name="subject">{{object.name or ''}}</field> | ||
<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 <t | ||
t-out="object.name or ''" | ||
/> as an attachment of the mail.</p> | ||
|
||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.load_data( | ||
env.cr, "sql_export_mail", "migrations/16.0.1.0.0/noupdate_changes.xml" | ||
) |