diff --git a/sql_export_mail/data/mail_template.xml b/sql_export_mail/data/mail_template.xml index d5d40a75a..ca64eb05b 100644 --- a/sql_export_mail/data/mail_template.xml +++ b/sql_export_mail/data/mail_template.xml @@ -5,19 +5,21 @@ SQL Export admin@example.com - ${object.get_email_address_for_template()} - ${object.name or ''} + {{object.get_email_address_for_template()}} + {{object.name or ''}} - + +
-

You will find the report ${object.name or ''} as an attachment of the mail.

+

You will find the report as an attachment of the mail.

- ]]>
+
diff --git a/sql_export_mail/migrations/16.0.1.0.0/noupdate_changes.xml b/sql_export_mail/migrations/16.0.1.0.0/noupdate_changes.xml new file mode 100644 index 000000000..fe76bd1f4 --- /dev/null +++ b/sql_export_mail/migrations/16.0.1.0.0/noupdate_changes.xml @@ -0,0 +1,19 @@ + + + + + {{object.get_email_address_for_template()}} + {{object.name or ''}} + +
+ +

You will find the report as an attachment of the mail.

+ +
+
+
+
diff --git a/sql_export_mail/migrations/16.0.1.0.0/post-migration.py b/sql_export_mail/migrations/16.0.1.0.0/post-migration.py new file mode 100644 index 000000000..bea37ae39 --- /dev/null +++ b/sql_export_mail/migrations/16.0.1.0.0/post-migration.py @@ -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" + )