commit
dcc9d54325
|
@ -5,19 +5,21 @@
|
|||
<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="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; ">
|
||||
<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 ${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>
|
||||
]]></field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
|
|
@ -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>
|
|
@ -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"
|
||||
)
|
Loading…
Reference in New Issue