Merge PR #728 into 16.0

Signed-off-by legalsylvain
pull/772/head
OCA-git-bot 2023-06-19 08:41:38 +00:00
commit dcc9d54325
3 changed files with 37 additions and 8 deletions

View File

@ -5,19 +5,21 @@
<record id="sql_export_mailer" model="mail.template"> <record id="sql_export_mailer" model="mail.template">
<field name="name">SQL Export</field> <field name="name">SQL Export</field>
<field name="email_from">admin@example.com</field> <field name="email_from">admin@example.com</field>
<field name="email_to">${object.get_email_address_for_template()}</field> <field name="email_to">{{object.get_email_address_for_template()}}</field>
<field name="subject">${object.name or ''}</field> <field name="subject">{{object.name or ''}}</field>
<field name="model_id" ref="sql_export.model_sql_export" /> <field name="model_id" ref="sql_export.model_sql_export" />
<field name="auto_delete" eval="True" /> <field name="auto_delete" eval="True" />
<field <field name="body_html" type="html">
name="body_html" <div
><![CDATA[ style="font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; "
<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> </div>
]]></field> </field>
</record> </record>
</odoo> </odoo>

View File

@ -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>

View File

@ -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"
)