[MIG] sql_export_mail from OCA/server-tools 14.0 to OCA/reporting-engine 16.0 branch

- Update views, regarding changes in sql_export module
- Add prepare function for cron vals
This commit is contained in:
Sylvain LE GAL
2022-10-26 16:24:25 +02:00
parent 12d67040df
commit c62e8f2ad9
6 changed files with 48 additions and 29 deletions

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<!-- Error Email template -->
<record id="sql_export_mailer" model="mail.template">
<field name="name">SQL Export</field>
<field name="email_from">admin@example.com</field>
<field name="email_to">${object.get_email_address_for_template()}</field>
<field name="subject">${object.name or ''}</field>
<field name="model_id" ref="sql_export.model_sql_export" />
<field name="auto_delete" eval="True" />
<field
name="body_html"
><![CDATA[
<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>
</div>
]]></field>
</record>
</odoo>