summaryrefslogtreecommitdiff
path: root/addons/mail/data
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/mail/data
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/mail/data')
-rw-r--r--addons/mail/data/ir_cron_data.xml59
-rw-r--r--addons/mail/data/mail_activity_data.xml42
-rw-r--r--addons/mail/data/mail_channel_data.xml33
-rw-r--r--addons/mail/data/mail_channel_demo.xml167
-rw-r--r--addons/mail/data/mail_data.xml413
5 files changed, 714 insertions, 0 deletions
diff --git a/addons/mail/data/ir_cron_data.xml b/addons/mail/data/ir_cron_data.xml
new file mode 100644
index 00000000..10073110
--- /dev/null
+++ b/addons/mail/data/ir_cron_data.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <data noupdate="1">
+ <record forcecreate="True" id="ir_cron_mail_scheduler_action" model="ir.cron">
+ <field name="name">Mail: Email Queue Manager</field>
+ <field name="model_id" ref="model_mail_mail"/>
+ <field name="state">code</field>
+ <field name="code">model.process_email_queue()</field>
+ <field name="user_id" ref="base.user_root"/>
+ <field name="interval_number">1</field>
+ <field name="interval_type">hours</field>
+ <field name="numbercall">-1</field>
+ <field eval="False" name="doall"/>
+ </record>
+
+ <record id="ir_cron_module_update_notification" model="ir.cron">
+ <field name="name">Publisher: Update Notification</field>
+ <field name="model_id" ref="model_publisher_warranty_contract"/>
+ <field name="state">code</field>
+ <field name="code">model.update_notification(None)</field>
+ <field name="user_id" ref="base.user_root" />
+ <field name="interval_number">1</field>
+ <field name="interval_type">weeks</field>
+ <field name="numbercall">-1</field>
+ <field name="nextcall" eval="(DateTime.now() + timedelta(days=7)).strftime('%Y-%m-%d %H:%M:%S')" />
+ <field eval="False" name="doall" />
+ <field name="priority">1000</field>
+ </record>
+
+ <record id="base.ir_cron_act" model="ir.actions.act_window">
+ <field name="domain" eval="[('id','!=', ref('mail.ir_cron_module_update_notification'))]"/>
+ </record>
+
+ <record id="ir_cron_mail_notify_channel_moderators" model="ir.cron">
+ <field name="name">Mail: Notify channel moderators</field>
+ <field name="model_id" ref="model_mail_message"/>
+ <field name="state">code</field>
+ <field name="code">model._notify_moderators</field>
+ <field name="user_id" ref="base.user_root" />
+ <field name="interval_number">1</field>
+ <field name="interval_type">days</field>
+ <field name="numbercall">-1</field>
+ <field eval="False" name="doall" />
+ <field name="priority">1000</field>
+ </record>
+
+ <record id="ir_cron_delete_notification" model="ir.cron">
+ <field name="name">Notification: Delete Notifications older than 6 Month</field>
+ <field name="interval_number">1</field>
+ <field name="interval_type">days</field>
+ <field name="numbercall">-1</field>
+ <field name="doall" eval="False"/>
+ <field name="model_id" ref="model_mail_notification"/>
+ <field name="code">model._gc_notifications(max_age_days=180)</field>
+ <field name="state">code</field>
+ </record>
+
+ </data>
+</odoo>
diff --git a/addons/mail/data/mail_activity_data.xml b/addons/mail/data/mail_activity_data.xml
new file mode 100644
index 00000000..04acedae
--- /dev/null
+++ b/addons/mail/data/mail_activity_data.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <data noupdate="1">
+ <record id="mail_activity_data_email" model="mail.activity.type">
+ <field name="name">Email</field>
+ <field name="icon">fa-envelope</field>
+ <field name="sequence">3</field>
+ </record>
+ <record id="mail_activity_data_call" model="mail.activity.type">
+ <field name="name">Call</field>
+ <field name="icon">fa-phone</field>
+ <field name="delay_count">2</field>
+ <field name="sequence">6</field>
+ </record>
+ <record id="mail_activity_data_meeting" model="mail.activity.type">
+ <field name="name">Meeting</field>
+ <field name="icon">fa-users</field>
+ <field name="sequence">9</field>
+ </record>
+ <record id="mail_activity_data_todo" model="mail.activity.type">
+ <field name="name">To Do</field>
+ <field name="icon">fa-tasks</field>
+ <field name="delay_count">5</field>
+ <field name="sequence">12</field>
+ </record>
+ <record id="mail_activity_data_upload_document" model="mail.activity.type">
+ <field name="name">Upload Document</field>
+ <field name="icon">fa-upload</field>
+ <field name="delay_count">5</field>
+ <field name="sequence">25</field>
+ <field name="category">upload_file</field>
+ </record>
+ <record id="mail_activity_data_warning" model="mail.activity.type">
+ <field name="name">Exception</field>
+ <field name="icon">fa-warning</field>
+ <field name="delay_count">0</field>
+ <field name="sequence">99</field>
+ <field name="decoration_type">warning</field>
+ <field name="active">False</field>
+ </record>
+ </data>
+</odoo>
diff --git a/addons/mail/data/mail_channel_data.xml b/addons/mail/data/mail_channel_data.xml
new file mode 100644
index 00000000..84d83e76
--- /dev/null
+++ b/addons/mail/data/mail_channel_data.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <data noupdate="1">
+
+ <record model="mail.channel" id="channel_all_employees">
+ <field name="name">general</field>
+ <field name="description">General announcements for all employees.</field>
+ </record>
+
+ <!-- notify all employees of module installation -->
+ <record model="mail.message" id="module_install_notification">
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="mail.channel_all_employees"/>
+ <field name="channel_ids" eval="[(4, ref('mail.channel_all_employees'))]"/>
+ <field name="message_type">email</field>
+ <field name="subtype_id" ref="mail.mt_comment"/>
+ <field name="subject">Welcome to Odoo!</field>
+ <field name="body"><![CDATA[<p>Welcome to the #general channel.</p>
+ <p>This channel is accessible to all users to <b>easily share company information</b>.</p>]]></field>
+ </record>
+
+ <record model="mail.channel.partner" id="channel_partner_general_channel_for_admin">
+ <field name="partner_id" ref="base.partner_admin"/>
+ <field name="channel_id" ref="mail.channel_all_employees"/>
+ <field name="fetched_message_id" ref="mail.module_install_notification"/>
+ <field name="seen_message_id" ref="mail.module_install_notification"/>
+ </record>
+
+ <record model="mail.channel" id="mail.channel_all_employees">
+ <field name="group_ids" eval="[(4, ref('base.group_user'))]"/>
+ </record>
+ </data>
+</odoo>
diff --git a/addons/mail/data/mail_channel_demo.xml b/addons/mail/data/mail_channel_demo.xml
new file mode 100644
index 00000000..42c6833d
--- /dev/null
+++ b/addons/mail/data/mail_channel_demo.xml
@@ -0,0 +1,167 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <data noupdate="1">
+
+ <!-- Discussion groups, done in 2 steps to remove creator from followers -->
+ <record model="mail.channel" id="channel_1">
+ <field name="name">sales</field>
+ <field name="description">Discussion about best sales practices and deals.</field>
+ </record>
+ <record model="mail.channel" id="channel_2">
+ <field name="name">board-meetings</field>
+ <field name="description">Board meetings, budgets, strategic plans</field>
+ </record>
+ <record model="mail.channel" id="channel_3">
+ <field name="name">rd</field>
+ <field name="description">Research and development discussion group</field>
+ </record>
+
+ <!-- Best sales practices messages -->
+ <record id="mail_message_channel_1_1" model="mail.message">
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="mail.channel_1"/>
+ <field name="body"><![CDATA[<p>Selling a training session and selling the products after the training session is more efficient than directly selling a pack with the training session and the products.</p>]]></field>
+ <field name="message_type">comment</field>
+ <field name="subtype_id" ref="mt_comment"/>
+ <field name="channel_ids" eval="[(4, ref('mail.channel_1'))]"/>
+ <field name="author_id" ref="base.partner_demo"/>
+ <field name="date" eval="(DateTime.today() - timedelta(days=5)).strftime('%Y-%m-%d %H:%M')"/>
+ </record>
+ <record id="mail_message_channel_1_2" model="mail.message">
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="mail.channel_1"/>
+ <field name="body"><![CDATA[<p>I noted I can not manage efficiently my pipeline when I have more than 50 opportunities in the qualification stage.</p><p>Any advice on this? How do you organize your activities with more than 50 opportunities?</p>]]></field>
+ <field name="message_type">comment</field>
+ <field name="subtype_id" ref="mt_comment"/>
+ <field name="channel_ids" eval="[(4, ref('mail.channel_1'))]"/>
+ <field name="author_id" ref="base.partner_root"/>
+ <field name="date" eval="(DateTime.today() - timedelta(days=4)).strftime('%Y-%m-%d %H:%M')"/>
+ </record>
+ <record id="mail_message_channel_1_2_1" model="mail.message">
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="mail.channel_1"/>
+ <field name="body"><![CDATA[<p>When I have too much opportunities in the pipe, I start communicating with prospects more by email than phonecalls.</p><p>I send an email to create a sense of emergency, like <i>"can I call you this week about our quote?"</i> and I call only those that answer this email.</p><p>You can use the email template feature of Odoo to automate email composition.</p>]]></field>
+ <field name="message_type">comment</field>
+ <field name="parent_id" ref="mail_message_channel_1_2"/>
+ <field name="subtype_id" ref="mt_comment"/>
+ <field name="channel_ids" eval="[(4, ref('mail.channel_1'))]"/>
+ <field name="author_id" ref="base.partner_demo"/>
+ <field name="date" eval="(DateTime.today() - timedelta(days=3)).strftime('%Y-%m-%d %H:%M')"/>
+ </record>
+
+ <!-- Pushed to all employees -->
+ <record id="mail_message_channel_whole_1" model="mail.message">
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="mail.channel_all_employees"/>
+ <field name="channel_ids" eval="[(4, ref('mail.channel_all_employees'))]"/>
+ <field name="body"><![CDATA[
+<p>
+ Great news!<br/>
+ Our company has received the Deloitte Fast 50 award. We are the fastest
+ growing company of the country, with a growth of 1549% over the past 5
+ years. You can get more information <a href="http://www.openerp.com/node/1244/2012/10">on our blog</a>.
+</p>
+]]></field>
+ <field name="message_type">comment</field>
+ <field name="author_id" ref="base.partner_demo"/>
+ <field name="date" eval="(DateTime.today() - timedelta(minutes=22)).strftime('%Y-%m-%d %H:%M')"/>
+ <field name="subtype_id" ref="mail.mt_comment"/>
+ </record>
+ <record id="mail_message_channel_whole_2" model="mail.message">
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="mail.channel_all_employees"/>
+ <field name="channel_ids" eval="[(4, ref('mail.channel_all_employees'))]"/>
+ <field name="body"><![CDATA[<p>Your monthly meal vouchers arrived. You can get them at the HR's office.</p>
+<p>This month you also get 250 EUR of eco-vouchers if you have been in the company for more than a year.</p>]]></field>
+ <field name="message_type">comment</field>
+ <field name="author_id" ref="base.partner_demo"/>
+ <field name="date" eval="(DateTime.today() - timedelta(hours=1)).strftime('%Y-%m-%d %H:%M')"/>
+ <field name="subtype_id" ref="mail.mt_comment"/>
+ </record>
+ <record id="mail_message_channel_whole_2_1" model="mail.message">
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="channel_all_employees"/>
+ <field name="channel_ids" eval="[(4, ref('mail.channel_all_employees'))]"/>
+ <field name="body"><![CDATA[<p>Thanks! Could you please remind me where is Christine's office, if I may ask? I'm new here!</p>]]></field>
+ <field name="parent_id" ref="mail_message_channel_whole_2"/>
+ <field name="message_type">comment</field>
+ <field name="author_id" ref="base.partner_root"/>
+ <field name="date" eval="(DateTime.today() - timedelta(minutes=34)).strftime('%Y-%m-%d %H:%M')"/>
+ <field name="subtype_id" ref="mail.mt_comment"/>
+ </record>
+ <record id="mail_message_channel_whole_2_2" model="mail.message">
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="channel_all_employees"/>
+ <field name="channel_ids" eval="[(4, ref('mail.channel_all_employees'))]"/>
+ <field name="body"><![CDATA[<p>Building B3, second floor on the right :-).</p>]]></field>
+ <field name="parent_id" ref="mail_message_channel_whole_2"/>
+ <field name="message_type">comment</field>
+ <field name="author_id" ref="base.partner_demo"/>
+ <field name="date" eval="(DateTime.today() - timedelta(minutes=22)).strftime('%Y-%m-%d %H:%M')"/>
+ <field name="subtype_id" ref="mail.mt_comment"/>
+ </record>
+
+ <!-- Board messages -->
+ <record id="mail_message_channel_2_1" model="mail.message">
+ <field name="model">mail.channel</field>
+ <field name="res_id" ref="mail.channel_2"/>
+ <field name="body"><![CDATA[
+<p>
+ Dear Board Members,
+</p>
+<p>
+ The main events of the month of October are:
+</p>
+<p>
+ <b>Sales:</b>
+</p>
+<ul>
+ <li>Invoicing is respectively of 442k€ for our European company (66% of the budget) and $404k for the U.S. office (75% of the budget). Despite these numbers that are far below our initial expectations, the growth of the month of October is 51% compared to last year.</li>
+ <li>The month of September having been better than our initial forecasts, the consolidated yearly revenue is only of $20k below our forecast made during the board of September.</li>
+ <li>The consolidated forecast for the end of the year is $6.749k, which is a growth of 76% compared to last year and an achievement of 87% of the budget.</li>
+ <li>The recruitment of new resellers has been very good, especially in Europe, where we signed 30 new resellers this month.</li>
+</ul>
+<p>
+ <b>Finance :</b>
+</p>
+<ul>
+ <li>The profit and loss has been negatively impacted this month by revenues that are far beyond the budget and charges that are 15% above the budget. The main extra we had in our charges this month is due to the provisioning of the salaries for the holidays period, $50k.</li>
+ <li>We also got the payment of our long awaited subsidies, the cash level has increased of 300K€ which gives a current balance of 963 K€ without including the straight loan of 350 K€.</li>
+ <li>The aged customer balance has been similar to the one of the last month with a small decrease of the DSO. We have recruited a new accountant assistant for the credit collection. She is mostly doing phone calls for all invoices that are due since 30 days, so we should get improvements of the DSO in November. The sum of the invoicing on which we have a risk in the aged customer balance is 100K€.</li>
+</ul>
+<p>
+ <b>Resellers and Customers:</b>
+</p>
+<ul>
+ <li>The total number of resellers is 429, across 87 countries.</li>
+ <li>The total number of installations of our software increased to 37K, against 33K for the month of September but we still did not reached the highest level we reached during this year (44K in march and may)</li>
+ <li>We have passed the 10000th customer in production with 10271 customers at the end of October. The paying customer ratio is 6,6%.</li>
+</ul>
+<p>
+ <b>Launch of the new release:</b>
+</p>
+<p>
+ We are working actively on the new release which is scheduled for the end of November.
+</p>
+<ul>
+ <li>We will publish the release note this week</li>
+ <li>The whole Sales Team will be trained on the new version this Friday</li>
+ <li>We will do a public announce to our resellers the 21th of November. We plan to show them: a description of the new features, the new distribution strategy, the new pricing and the communication plan.</li>
+</ul>
+<br/>
+<p>
+ Nicolas, can you book a meeting room for our meeting of Friday 2pm?
+</p>
+<p>
+ Regards.
+</p>
+]]></field>
+ <field name="message_type">comment</field>
+ <field name="subtype_id" ref="mt_comment"/>
+ <field name="channel_ids" eval="[(4, ref('mail.channel_2'))]"/>
+ <field name="author_id" ref="base.partner_demo"/>
+ <field name="date" eval="(DateTime.today() - timedelta(days=3)).strftime('%Y-%m-%d %H:%M')"/>
+ </record>
+
+ </data>
+</odoo>
diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml
new file mode 100644
index 00000000..6b5b6298
--- /dev/null
+++ b/addons/mail/data/mail_data.xml
@@ -0,0 +1,413 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <data noupdate="1">
+
+ <record id="base.partner_root" model="res.partner">
+ <field name="name">OdooBot</field>
+ <field name="email">odoobot@example.com</field>
+ <field name="image_1920" type="base64" file="mail/static/src/img/odoobot.png"/>
+ </record>
+
+ <!-- user root should not receive emails at creation -->
+ <record id="base.user_root" model="res.users">
+ <field name="notification_type">inbox</field>
+ </record>
+
+ <!-- Catchall Email Alias -->
+ <record id="icp_mail_catchall_alias" model="ir.config_parameter">
+ <field name="key">mail.catchall.alias</field>
+ <field name="value">catchall</field>
+ </record>
+
+ <!-- Bounce Email Alias -->
+ <record id="icp_mail_bounce_alias" model="ir.config_parameter">
+ <field name="key">mail.bounce.alias</field>
+ <field name="value">bounce</field>
+ </record>
+
+ <!-- Discussion subtype for messaging / Chatter -->
+ <record id="mt_comment" model="mail.message.subtype">
+ <field name="name">Discussions</field>
+ <field name="sequence" eval="0"/>
+ </record>
+ <record id="mt_note" model="mail.message.subtype">
+ <field name="name">Note</field>
+ <field name="default" eval="False"/>
+ <field name="internal" eval="True"/>
+ <field name="sequence" eval="100"/>
+ </record>
+ <record id="mt_activities" model="mail.message.subtype">
+ <field name="name">Activities</field>
+ <field name="default" eval="False"/>
+ <field name="internal" eval="True"/>
+ <field name="sequence" eval="90"/>
+ </record>
+
+ </data>
+ <data>
+ <template id="message_notification_email">
+<div>
+<div t-if="has_button_access" itemscope="itemscope" itemtype="http://schema.org/EmailMessage">
+ <div itemprop="potentialAction" itemscope="itemscope" itemtype="http://schema.org/ViewAction">
+ <link itemprop="target" t-att-href="button_access['url']"/>
+ <link itemprop="url" t-att-href="button_access['url']"/>
+ <meta itemprop="name" t-att-content="button_access['title']"/>
+ </div>
+</div>
+<div t-if="has_button_access or len(actions) &gt; 0 or not is_discussion"
+ summary="o_mail_notification" style="padding: 0px; width:600px;">
+ <table cellspacing="0" cellpadding="0" border="0" style="width: 600px; margin-top: 5px;">
+ <tbody><tr>
+ <td valign="center">
+ <a t-if="has_button_access"
+ t-att-href="button_access['url']"
+ style="padding: 8px 12px; font-size: 12px; color: #FFFFFF; text-decoration: none !important; font-weight: 400; background-color: #875A7B; border: 0px solid #875A7B; border-radius:3px">
+ <t t-esc="button_access['title']"/>
+ </a>
+ <t t-if="actions">
+ <t t-foreach="actions" t-as="action">
+ |
+ <a t-att-href="action['url']" style="color: #875A7B; text-decoration:none !important;">
+ <t t-esc="action['title']"/>
+ </a>
+ </t>
+ </t>
+ </td>
+ <td valign="center" align="right">
+ <img t-att-src="'/logo.png?company=%s' % (company.id or 0)" style="padding: 0px; margin: 0px; height: auto; max-width: 200px; max-height: 36px;" t-att-alt="'%s' % company.name"/>
+ </td>
+ </tr><tr>
+ <td colspan="2" style="text-align:center;">
+ <hr width="100%"
+ style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin:4px 0 12px 0;"/>
+ <p t-if="subtype.internal" style="background-color: #f2dede; padding: 5px; margin-bottom: 16px;">
+ <strong>Internal communication</strong>: Replying will post an internal note. Followers won't receive any email notification.
+ </p>
+ </td>
+ </tr></tbody>
+ </table>
+</div>
+<div t-raw="message.body"/>
+<ul t-if="tracking_values">
+ <t t-foreach="tracking_values" t-as="tracking">
+ <li><t t-esc="tracking[0]"/>: <t t-esc="tracking[1]"/> -&gt; <t t-esc="tracking[2]"/></li>
+ </t>
+</ul>
+<div t-if="signature" t-raw="signature" style="font-size: 13px;"/>
+<p style="color: #555555; margin-top:32px;">
+ Sent
+ <span t-if="company.name">
+ by
+ <a t-if="website_url" t-att-href="website_url" style="text-decoration:none; color: #875A7B;">
+ <span t-esc="company.name"/>
+ </a>
+ <span t-if="not website_url" t-esc="company.name"/>
+ </span>
+ using
+ <a target="_blank" href="https://www.odoo.com?utm_source=db&amp;utm_medium=email" style="text-decoration:none; color: #875A7B;">Odoo</a>.
+</p>
+</div>
+ </template>
+
+ <template id="mail_notification_borders">
+<div>
+<table border="0" width="100%" cellpadding="0" bgcolor="#ededed" style="padding: 20px; background-color: #ededed; border-collapse:separate;" summary="o_mail_notification">
+<tbody>
+ <!-- HEADER -->
+ <tr>
+ <td align="center" style="min-width: 590px;">
+ <table width="590" border="0" cellpadding="0" bgcolor="#875A7B" style="min-width: 590px; background-color: rgb(135,90,123); padding: 20px; border-collapse:separate;">
+ <tr><td valign="middle">
+ <span style="font-size:20px; color:white; font-weight: bold;">
+ <t t-esc="message.record_name"/>
+ </span>
+ </td><td valign="middle" align="right">
+ <img t-att-src="'/logo.png?company=%s' % (company.id or 0)" style="padding: 0px; margin: 0px; height: auto; width: 80px;" t-att-alt="'%s' % company.name"/>
+ </td></tr>
+ </table>
+ </td>
+ </tr>
+ <!-- CONTENT -->
+ <tr>
+ <td align="center" style="min-width: 590px;">
+ <table width="590" border="0" cellpadding="0" bgcolor="#ffffff" style="min-width: 590px; background-color: rgb(255, 255, 255); padding: 20px; border-collapse:separate;">
+ <tbody><td valign="top" style="font-family:Arial,Helvetica,sans-serif; color: #555; font-size: 14px;">
+ <t t-raw="message.body"/>
+ </td></tbody>
+ </table>
+ </td>
+ </tr>
+ <!-- FOOTER -->
+ <tr>
+ <td align="center" style="min-width: 590px;">
+ <table width="590" border="0" cellpadding="0" bgcolor="#875A7B" style="min-width: 590px; background-color: rgb(135,90,123); padding: 20px; border-collapse:separate;">
+ <tr><td valign="middle" align="left" style="color: #fff; padding-top: 10px; padding-bottom: 10px; font-size: 12px;">
+ <t t-esc="company.name"/><br/>
+ <t t-esc="company.phone"/>
+ </td><td valign="middle" align="right" style="color: #fff; padding-top: 10px; padding-bottom: 10px; font-size: 12px;">
+ <t t-if="company.email">
+ <a t-att-href="'mailto:%s' % company.email" style="text-decoration:none; color: white;"><t t-esc="company.email"/></a><br/>
+ </t>
+ <t t-if="company.website">
+ <a t-att-href="'%s' % company.website" style="text-decoration:none; color: white;">
+ <t t-esc="company.website"/>
+ </a>
+ </t>
+ </td></tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td align="center" style="padding: 8px; font-size:11px;">
+ Powered by <a target="_blank" href="https://www.odoo.com?utm_source=db&amp;utm_medium=email">Odoo</a>.
+ </td>
+ </tr>
+</tbody>
+</table>
+</div>
+ </template>
+
+ <template id="mail_notification_light">
+<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"><tr><td align="center">
+<table border="0" cellpadding="0" cellspacing="0" width="590" style="padding: 24px; background-color: white; color: #454748; border-collapse:separate;">
+<tbody>
+ <!-- HEADER -->
+ <tr>
+ <td align="center" style="min-width: 590px;">
+ <table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: white; padding: 0; border-collapse:separate;">
+ <tr><td valign="middle">
+ <span style="font-size: 10px;">Your <t t-esc="model_description or 'document'"/></span><br/>
+ <span style="font-size: 20px; font-weight: bold;">
+ <t t-esc="message.record_name and message.record_name.replace('/','-') or ''"/>
+ </span>
+ </td><td valign="middle" align="right">
+ <img t-att-src="'/logo.png?company=%s' % (company.id or 0)" style="padding: 0px; margin: 0px; height: 48px;" t-att-alt="'%s' % company.name"/>
+ </td></tr>
+ <tr><td colspan="2" style="text-align:center;">
+ <hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin:4px 0px 32px 0px;"/>
+ </td></tr>
+ </table>
+ </td>
+ </tr>
+ <!-- CONTENT -->
+ <tr>
+ <td style="min-width: 590px;">
+ <t t-raw="message.body"/>
+ </td>
+ </tr>
+ <!-- FOOTER -->
+ <tr>
+ <td align="center" style="min-width: 590px; padding: 0 8px 0 8px; font-size:11px;">
+ <hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 4px 0px;"/>
+ <b t-esc="company.name"/><br/>
+ <div style="color: #999999;">
+ <t t-esc="company.phone"/>
+ <t t-if="company.email"> |
+ <a t-att-href="'mailto:%s' % company.email" style="text-decoration:none; color: #999999;"><t t-esc="company.email"/></a>
+ </t>
+ <t t-if="company.website"> |
+ <a t-att-href="'%s' % company.website" style="text-decoration:none; color: #999999;">
+ <t t-esc="company.website"/>
+ </a>
+ </t>
+ </div>
+ </td>
+ </tr>
+</tbody>
+</table>
+</td></tr>
+<!-- POWERED BY -->
+<tr><td align="center" style="min-width: 590px;">
+ Powered by <a target="_blank" href="https://www.odoo.com?utm_source=db&amp;utm_medium=email" style="color: #875A7B;">Odoo</a>
+</td></tr>
+</table>
+ </template>
+
+ <!-- Information on model to use this notification template
+ * if the record has an online access defined in get_access_action, having
+ a _get_share_url methods is required (like sale order and invoice);
+ * this template works best with portal-enable models although it is not
+ a complete requirement currently;
+ -->
+ <template id="mail_notification_paynow" name="Mail: Pay Now mail notification template">
+<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"><tr><td align="center">
+<table border="0" cellpadding="0" cellspacing="0" width="590" style="padding: 24px; background-color: white; color: #454748; border-collapse:separate;">
+<tbody>
+ <!-- HEADER -->
+ <tr>
+ <td align="center" style="min-width: 590px;">
+ <t t-set="access_action" t-value="record.with_context(force_website=True).get_access_action()"/>
+ <t t-set="is_online" t-value="access_action and access_action['type'] == 'ir.actions.act_url'"/>
+ <t t-set="base_url" t-value="record.get_base_url()"/>
+ <t t-set="share_url" t-value="record._get_share_url(redirect=True, signup_partner=notification_is_customer, share_token=notification_is_customer)"/>
+ <t t-set="access_url" t-value="is_online and share_url and base_url + share_url or ''"/>
+ <t t-set="access_name">
+ View <t t-esc="model_description or 'document'"/>
+ </t>
+ <table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: white; padding: 0; border-collapse:separate;">
+ <tr><td valign="middle">
+ <span style="font-size: 10px;">Your <t t-esc="model_description or 'document'"/></span><br/>
+ <span style="font-size: 20px; font-weight: bold;">
+ <t t-esc="message.record_name"/>
+ </span>
+ </td><td valign="middle" align="right">
+ <img t-att-src="'/logo.png?company=%s' % (company.id or 0)" style="padding: 0px; margin: 0px; height: 48px;" t-att-alt="'%s' % company.name"/>
+ </td></tr>
+ <tr><td colspan="2" style="text-align:center;">
+ <hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin:4px 0px 32px 0px;"/>
+ </td></tr>
+ </table>
+ </td>
+ </tr>
+ <!-- CONTENT -->
+ <tr>
+ <td style="padding: 0">
+ <t t-raw="message.body"/>
+ <div t-if="is_online and not record._context.get('proforma')" style="margin: 32px 0px 32px 0px; text-align: center;">
+ <a t-att-href="access_url"
+ style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;">
+ <t t-esc="access_name"/>
+ </a>
+ </div>
+ <t t-if="record.user_id and not record.env.user._is_superuser()">
+ <div style="margin: 0px; padding: 0px; font-size:13px;">
+ Best regards,
+ </div>
+ <div>&amp;nbsp;</div>
+ <div t-if="record.user_id.sudo().signature" style="font-size: 13px;">
+ <div t-raw="record.user_id.sudo().signature"/>
+ </div>
+ </t>
+ </td>
+ </tr>
+ <!-- FOOTER -->
+ <tr>
+ <td style="padding: 0; font-size:11px;">
+ <hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 32px 0px 4px 0px;"/>
+ <b t-esc="company.name"/><br/>
+ <div style="color: #999999">
+ <t t-esc="company.phone"/>
+ <t t-if="company.email"> |
+ <a t-att-href="'mailto:%s' % company.email" style="text-decoration:none; color: #999999;"><t t-esc="company.email"/></a>
+ </t>
+ <t t-if="company.website"> |
+ <a t-att-href="'%s' % company.website" style="text-decoration:none; color: #999999;">
+ <t t-esc="company.website"/>
+ </a>
+ </t>
+ </div>
+ </td>
+ </tr>
+</tbody>
+</table>
+</td></tr>
+<!-- POWERED BY -->
+<tr><td align="center" style="min-width: 590px; padding: 8px; font-size:11px;">
+ Powered by <a target="_blank" href="https://www.odoo.com?utm_source=db&amp;utm_medium=email" style="color: #875A7B;">Odoo</a>
+</td></tr>
+</table>
+ </template>
+
+ <!-- Discuss utility templates for notifications -->
+ <template id="message_user_assigned">
+<p style="margin: 0px;">
+ <span>Dear <t t-esc="object.user_id.sudo().name"/>,</span><br />
+ <span style="margin-top: 8px;">You have been assigned to the <t t-esc="model_description or 'document'"/> <t t-esc="object.display_name"/>.</span>
+</p>
+<p style="margin-top: 24px; margin-bottom: 16px;">
+ <a t-att-href="access_link" t-att-data-oe-model="object._name" t-att-data-oe-id="object.id" style="background-color:#875A7B; padding: 10px; text-decoration: none; color: #fff; border-radius: 5px;">
+ View <t t-esc="model_description or 'document'"/>
+ </a>
+</p>
+ </template>
+
+ <template id="message_activity_done">
+<div>
+ <p>
+ <span t-attf-class="fa #{activity.activity_type_id.icon} fa-fw"/><span t-field="activity.activity_type_id.name"/> done
+ <t t-if="display_assignee"> (originally assigned to <span t-field="activity.user_id.name"/>)</t>
+ <span t-if="activity.summary">: </span><span t-if="activity.summary" t-field="activity.summary"/>
+ </p>
+ <div t-if="feedback">
+ <t t-foreach="feedback.split('\n')" t-as="feedback_line">
+ <t t-esc="feedback_line"/>
+ <br t-if="not feedback_line_last"/>
+ </t>
+ </div>
+ <t t-if="activity.note and activity.note != '&lt;p&gt;&lt;br&gt;&lt;/p&gt;'"><!-- <p></br></p> -->
+ <div class="o_mail_note_title"><strong>Original note:</strong></div>
+ <div t-field="activity.note"/>
+ </t>
+</div>
+ </template>
+
+ <template id="message_activity_assigned">
+<div style="margin: 0px; padding: 0px; font-size: 13px;">
+ <span t-field="activity.create_uid.name"/> assigned you an activity <span t-field="activity.activity_type_id.name"/>
+ <t t-if="activity.summary">(<span t-field="activity.summary"/>)</t>
+ on <span t-field="activity.res_name"/>
+ to close for <span t-field="activity.date_deadline"/>.<br />
+ <p style="margin: 16px 0px 16px 0px;">
+ <a t-att-href="access_link" t-att-data-oe-model="activity.res_model" t-att-data-oe-id="activity.res_id"
+ style="background-color:#875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;">
+ View <t t-esc="model_description or 'document'"/>
+ </a>
+ </p>
+ <div t-if="activity.note" style="margin-top: 8px;" t-field="activity.note"/>
+</div>
+ </template>
+
+ <template id="message_origin_link">
+ <p>
+ <t t-if="edit">This <t t-esc="self.env['ir.model']._get(self._name).name.lower()"/> has been modified from:</t>
+ <t t-else="">This <t t-esc="self.env['ir.model']._get(self._name).name.lower()"/> has been created from:</t>
+ <t t-foreach="origin" t-as="o">
+ <a href="#" t-att-data-oe-model="o._name" t-att-data-oe-id="o.id"> <t t-esc="o.display_name"/></a><span t-if="origin.ids[-1:] != o.ids">, </span>
+ </t>
+ </p>
+ </template>
+
+ <!-- Mail gateway templates -->
+ <template id="mail_bounce_catchall">
+<div>
+ <p>Hello <t t-esc="message['email_from']"/>,</p>
+ <p>The email sent to <t t-esc="message['to']"/> cannot be processed. This address
+ is used to collect replies and should not be used to directly contact <t t-esc="res_company.name"/>.</p>
+ <p>Please contact us instead using <a t-att-href="'mailto:%s' % res_company.email"><t t-esc="res_company.email"/></a></p>
+ <p>Regards,</p>
+ <p>The <t t-esc="res_company.name"/> team.</p>
+</div>
+<blockquote><t t-esc="message['body']"/></blockquote>
+ </template>
+
+ <!-- Mail bounce alias mail template -->
+ <template id="mail_bounce_alias_security">
+<div><t t-raw="body"/></div>
+<blockquote><t t-raw="message['body']"/></blockquote>
+ </template>
+
+ <!-- Channel and moderation related data -->
+ <template id="mail_channel_notify_moderation">
+<div>
+ <p>Hello <t t-esc='record.name'/></p>
+ <p>You have messages to moderate, please go for the proceedings.</p><br/><br/>
+ <div style="text-align: center;">
+ <a href="/web#action=mail.action_discuss&amp;active_id=mail.box_moderation" style="background-color: #1abc9c; padding: 20px; text-decoration: none; color: #fff; border-radius: 5px; font-size: 16px;" class="o_default_snippet_text">Moderate Messages</a>
+ <br/><br/><br/>
+ </div>
+ <p>Thank you!</p>
+</div>
+ </template>
+
+ <template id="mail_channel_send_guidelines">
+<div>
+<p>Hello <t t-esc="partner.name"/>,</p>
+<p>Please find below the guidelines of the <t t-esc="channel.name"/> channel.</p>
+<p>
+<t t-esc="channel.moderation_guidelines_msg"/>
+</p>
+<p></p>
+</div>
+ </template>
+ </data>
+</odoo>