Files
enterprise-addons/documents/data/mail_template_data.xml
T

437 lines
32 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!--Email template -->
<record id="mail_template_document_request" model="mail.template">
<field name="name">Document: Document Request</field>
<field name="model_id" ref="model_documents_document"/>
<field name="subject">Document Request {{ object.name != False and ': '+ object.name or '' }}</field>
<field name="email_to" eval="False"/>
<field name="partner_to">{{ object.requestee_partner_id.id or '' }}</field>
<field name="use_default_to" eval="False"/>
<field name="description">Sent to partner when requesting a document from them</field>
<field name="body_html" type="html">
<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: 16px; 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="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr><td valign="middle">
<span style="font-size: 10px;">
Document Request: <br/>
<t t-if="object.name">
<span style="font-size: 20px; font-weight: bold;" t-out="object.name or ''">Inbox Financial</span>
</t>
</span><br/>
</td><td valign="middle" align="right" t-if="not object.create_uid.company_id.uses_default_logo">
<img t-attf-src="/logo.png?company={{ object.create_uid.company_id.id }}" style="padding: 0px; margin: 0px; height: auto; width: 80px;" t-att-alt="object.create_uid.company_id.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: 16px 0px 16px 0px;"/>
</td></tr>
</table>
</td>
</tr>
<!-- CONTENT -->
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr><td valign="top" style="font-size: 13px;">
<div>
Hello <t t-out="object.requestee_partner_id.name or ''">OdooBot</t>,
<br/><br/>
<t t-out="object.create_uid.name or ''">OdooBot</t> (<t t-out="object.create_uid.email or ''">odoobot@example.com</t>) asks you to provide the following document:
<br/><br/>
<center>
<div>
<t t-if="object.name">
<b t-out="object.name or ''">Inbox Financial</b>
</t>
</div>
<div>
<t t-if="object.request_activity_id.note">
<i t-out="object.request_activity_id.note or ''">Example of a note.</i>
</t>
</div>
<br/>
<div style="margin: 16px 0px 16px 0px;">
<a t-att-href="object.access_url"
t-attf-style="background-color: {{user.company_id.email_secondary_color or '#875A7B'}}; padding: 20px 30px 20px 30px; text-decoration: none; color: {{user.company_id.email_primary_color or '#FFFFFF'}}; border-radius: 5px; font-size:13px;">
Upload the requested document
</a>
</div>
</center><br/>
Please provide us with the missing document before <t t-out="object.request_activity_id.date_deadline">2021-05-17</t>.
<t t-if="user and user.signature">
<br/>
<div>--<br/><t t-out="user.signature or ''">Mitchell Admin</t></div>
<br/>
</t>
</div>
</td></tr>
<tr><td 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: 16px 0px 16px 0px;"/>
</td></tr>
</table>
</td>
</tr>
<!-- FOOTER -->
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; font-size: 11px; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr><td valign="middle" align="left">
<t t-out="object.create_uid.company_id.name or ''">YourCompany</t>
</td></tr>
<tr><td valign="middle" align="left" style="opacity: 0.7;">
<t t-out="object.create_uid.company_id.phone or ''">+1 650-123-4567</t>
<t t-if="object.create_uid.company_id.email">
| <a t-attf-href="mailto:{{ object.create_uid.company_id.email }}" style="text-decoration:none; color: #454748;" t-out="object.create_uid.company_id.email or ''">info@yourcompany.com</a>
</t>
<t t-if="object.create_uid.company_id.website">
| <a t-att-href="object.create_uid.company_id.website" style="text-decoration:none; color: #454748;" t-out="object.create_uid.company_id.website or ''">http://www.example.com</a>
</t>
</td></tr>
</table>
</td>
</tr>
</tbody>
</table>
</td></tr>
<!-- POWERED BY -->
<tr><td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: #F1F1F1; color: #454748; padding: 8px; border-collapse:separate;">
<tr><td style="text-align: center; font-size: 13px;">
Powered by <a target="_blank" href="https://www.odoo.com/app/documents" t-attf-style="color: {{user.company_id.email_secondary_color or '#875A7B'}};">Odoo Documents</a>
</td></tr>
</table>
</td></tr>
</table>
</field>
<field name="lang">{{ object.requestee_partner_id.lang }}</field>
<field name="auto_delete" eval="True"/>
</record>
<!-- Manual reminder; copy of document request template -->
<record id="mail_template_document_request_reminder" model="mail.template">
<field name="name">Document Request: Reminder</field>
<field name="model_id" ref="model_documents_document"/>
<field name="subject">Reminder to upload your document{{ object.name and ' : ' + object.name or '' }}</field>
<field name="email_to" eval="False"/>
<field name="partner_to">{{ object.requestee_partner_id.id or '' }}</field>
<field name="lang">{{ object.requestee_partner_id.lang }}</field>
<field name="use_default_to" eval="False"/>
<field name="description">Set reminders in activities to notify users who didn't upload their requested document</field>
<field name="body_html" type="html">
<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: 16px; 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="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr><td valign="middle">
<span style="font-size: 10px;">
Document Request: <br/>
<t t-if="object.name">
<span style="font-size: 20px; font-weight: bold;" t-out="object.name or ''">Inbox Financial</span>
</t>
</span><br/>
</td><td valign="middle" align="right">
<img t-attf-src="/logo.png?company={{ object.create_uid.company_id.id }}" style="padding: 0px; margin: 0px; height: auto; width: 80px;" t-att-alt="object.create_uid.company_id.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: 16px 0px 16px 0px;"/>
</td></tr>
</table>
</td>
</tr>
<!-- CONTENT -->
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr><td valign="top" style="font-size: 13px;">
<div>
Hello <t t-out="object.requestee_partner_id.name or ''">OdooBot</t>,
<br/><br/>
This is a friendly reminder to upload your requested document:
<br/><br/>
<center>
<div>
<t t-if="object.name">
<b t-out="object.name or ''">Inbox Financial</b>
</t>
</div>
<div>
<t t-if="object.request_activity_id.note">
<i t-out="object.request_activity_id.note or ''">Example of a note.</i>
</t>
</div>
<br/>
<div style="margin: 16px 0px 16px 0px;">
<a t-att-href="object.access_url"
t-attf-style="background-color: {{user.company_id.email_secondary_color or '#875A7B'}}; padding: 20px 30px 20px 30px; text-decoration: none; color: {{user.company_id.email_primary_color or '#FFFFFF'}}; border-radius: 5px; font-size:13px;">
Upload the requested document
</a>
</div>
</center><br/>
Please provide us with the missing document before <t t-out="object.request_activity_id.date_deadline or ''">2021-05-17</t>.
<br/><br/>
Thank you,
<t t-if="user and user.signature">
<br/>
<div>--<br/><t t-out="user.signature">Mitchell Admin</t></div>
<br/>
</t>
</div>
</td></tr>
<tr><td 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: 16px 0px 16px 0px;"/>
</td></tr>
</table>
</td>
</tr>
<!-- FOOTER -->
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; font-size: 11px; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr><td valign="middle" align="left">
<t t-out="object.create_uid.company_id.name or ''">YourCompany</t>
</td></tr>
<tr><td valign="middle" align="left" style="opacity: 0.7;">
<t t-out="object.create_uid.company_id.phone or ''">+1 650-123-4567</t>
<t t-if="object.create_uid.company_id.email">
| <a t-attf-href="mailto:{{ object.create_uid.company_id.email }}" style="text-decoration:none; color: #454748;" t-out="object.create_uid.company_id.email">info@yourcompany.com</a>
</t>
<t t-if="object.create_uid.company_id.website">
| <a t-att-href="object.create_uid.company_id.website" style="text-decoration:none; color: #454748;" t-out="object.create_uid.company_id.website">http://www.example.com</a>
</t>
</td></tr>
</table>
</td>
</tr>
</tbody>
</table>
</td></tr>
<!-- POWERED BY -->
<tr><td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: #F1F1F1; color: #454748; padding: 8px; border-collapse:separate;">
<tr><td style="text-align: center; font-size: 13px;">
Powered by <a target="_blank" href="https://www.odoo.com/app/documents" t-attf-style="color: {{user.company_id.email_secondary_color or '#875A7B'}};">Odoo Documents</a>
</td></tr>
</table>
</td></tr>
</table>
</field>
</record>
<record id="mail_template_document_share" model="mail.template">
<field name="name">Document: Document Share</field>
<field name="model_id" ref="model_res_partner"/>
<field name="subject">{{ len(ctx.get('documents', [])) }} document(s) shared with you</field>
<field name="email_to" eval="False"/>
<field name="partner_to">{{ object.id or '' }}</field>
<field name="use_default_to" eval="False"/>
<field name="description">Sent to partner when sharing a document with them</field>
<field name="body_html" type="html">
<t t-set="documents" t-value="ctx.get('documents', object.env['documents.document'])"/>
<t t-set="access_urls_by_partner" t-value="ctx.get('access_urls_by_partner', {})"/>
<t t-set="access_urls" t-value="access_urls_by_partner.get(object) or {}"/>
<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: 16px; 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="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr><td valign="middle">
<span style="font-size: 10px;" t-if="len(documents) == 1">
Shared Document<br/>
<span style="font-size: 20px; font-weight: bold;" t-out="documents.name or ''"/>
</span>
<span style="font-size: 10px;" t-if="len(documents) &gt; 1">
Shared Documents<br/>
<span style="font-size: 20px; font-weight: bold;" t-out="', '.join(documents.filtered('name').mapped('name'))"/>
</span>
<br/>
</td><td valign="middle" align="right" t-if="not user.company_id.uses_default_logo">
<img t-attf-src="/logo.png?company={{ user.company_id.id }}" style="padding: 0px; margin: 0px; height: auto; width: 80px;" t-att-alt="user.company_id.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: 16px 0px 16px 0px;"/>
</td></tr>
</table>
</td>
</tr>
<!-- CONTENT -->
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr><td valign="top" style="font-size: 13px;">
<div>
Hello <t t-out="object.name"/>,
<br/><br/>
<t t-if="len(documents) &lt;= 1">
<t t-if="documents.type == 'folder'" t-set="share_message">shared the following folder with you</t>
<t t-else="" t-set="share_message">shared the following document with you</t>
</t>
<t t-elif="len(documents) > 1">
<t t-set="document_types" t-value="set(documents.mapped('type'))"/>
<t t-if="document_types == {'folder'}" t-set="share_message">shared the following folders with you</t>
<t t-elif="'folder' not in document_types" t-set="share_message">shared the following documents with you</t>
<t t-else="" t-set="share_message">shared the following documents/folders with you</t>
</t>
<t t-out="user.name or ''">OdooBot</t> (<t t-out="user.email or ''">odoobot@example.com</t>) <t t-out="share_message"/>:
<br/><br/>
<center t-if="len(documents) &lt;= 1">
<div t-if="len(documents) == 1">
<b t-out="documents.name"/>
</div>
<div t-if="ctx.get('message')">
<i t-out="ctx['message']"/>
</div>
<br/>
<div style="margin: 16px 0px 16px 0px;">
<a t-att-href="access_urls.get(documents)"
t-attf-style="background-color: {{user.company_id.email_secondary_color or '#875A7B'}}; padding: 20px 30px 20px 30px; text-decoration: none; color: {{user.company_id.email_primary_color or '#FFFFFF'}}; border-radius: 5px; font-size:13px;">
<b>Get your files</b>
</a>
</div>
</center>
<t t-elif="len(documents) &gt; 1">
<div t-if="ctx.get('message')">
<i t-out="ctx['message']"/>
</div>
<ul>
<li t-foreach="documents" t-as="document">
<a t-att-href="access_urls.get(document)"
t-attf-style="color: {{user.company_id.email_secondary_color or '#875A7B'}}; font-size:13px;">
<b>Get <t t-out="document.name"/></b>
</a>
</li>
</ul>
</t>
<br/>
<t t-if="user and user.signature">
<br/>
<div>--<br/><t t-out="user.signature"/></div>
<br/>
</t>
</div>
</td></tr>
<tr><td 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: 16px 0px 16px 0px;"/>
</td></tr>
</table>
</td>
</tr>
<!-- FOOTER -->
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; font-size: 11px; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr><td valign="middle" align="left">
<t t-out="user.company_id.name or ''">YourCompany</t>
</td></tr>
<tr><td valign="middle" align="left" style="opacity: 0.7;">
<t t-out="user.company_id.phone or ''">+1 650-123-4567</t>
<t t-if="user.company_id.email">
| <a t-attf-href="mailto:{{ user.company_id.email }}" style="text-decoration:none; color: #454748;" t-out="user.company_id.email">info@yourcompany.com</a>
</t>
<t t-if="user.company_id.website">
| <a t-att-href="user.company_id.website" style="text-decoration:none; color: #454748;" t-out="user.company_id.website">http://www.example.com</a>
</t>
</td></tr>
</table>
</td>
</tr>
</tbody>
</table>
</td></tr>
<!-- POWERED BY -->
<tr><td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: #F1F1F1; color: #454748; padding: 8px; border-collapse:separate;">
<tr><td style="text-align: center; font-size: 13px;">
Powered by <a target="_blank" href="https://www.odoo.com/app/documents" t-attf-style="color: {{user.company_id.email_secondary_color or '#875A7B'}};">Odoo Documents</a>
</td></tr>
</table>
</td></tr>
</table>
</field>
<field name="lang">{{ object.lang }}</field>
<field name="auto_delete" eval="True"/>
</record>
<template id="folder_notification_move_in">
<p t-if="len(documents) == 1">
<span t-out="documents[0].display_name"/> was moved inside this folder.
</p>
<t t-else="">
<p>The following documents were moved inside this folder:</p>
<ul>
<li t-foreach="documents" t-as="document">
<span t-out="document.display_name"/>
</li>
</ul>
</t>
</template>
<template id="folder_notification_move_out">
<p t-if="len(documents) == 1">
<span t-out="documents[0].display_name"/> was been moved outside this folder.
</p>
<t t-else="">
<p>The following documents were moved outside this folder:</p>
<ul>
<li t-foreach="documents" t-as="document">
<span t-out="document.display_name"/>
</li>
</ul>
</t>
</template>
<template id="tracking_access_members_change">
<t t-if="created_access">
<span>The following members gained access:</span>
<ul class="mb-1">
<li t-foreach="created_access.items()" t-as="access">
<t t-out="partner_map.get(access[0]).name"/> has gained access as
<t t-if="access[1]['role'] == 'view'">Viewer</t>
<t t-else="">Editor</t>
</li>
</ul>
</t>
<t t-if="updated_access">
<span>The following members had their rights changed:</span>
<ul class="mb-1">
<li t-foreach="updated_access.items()" t-as="access">
<t t-if="access[1]['role'][0] != access[1]['role'][1]">
<span t-out="partner_map.get(access[0]).name"/> rights changed from
<t t-if="access[1]['role'][0] == 'view'">Viewer</t>
<t t-else="">Editor</t>
to
<t t-if="access[1]['role'][1] == 'view'">Viewer</t>
<t t-else="">Editor</t>
<span t-if="access[1]['expiration_date'][0] != access[1]['expiration_date'][1]">
and its expiration date changed from <t t-out="access[1]['expiration_date'][0]"/> to <t t-out="access[1]['expiration_date'][1]"/>
</span>
</t>
<t t-elif="access[1]['expiration_date'][0] != access[1]['expiration_date'][1]">
<span t-out="partner_map.get(access[0]).name"/> expiration date changed from <t t-out="access[1]['expiration_date'][0]"/> to <t t-out="access[1]['expiration_date'][1]"/>
</t>
</li>
</ul>
</t>
<t t-if="removed_access">
<span>The following members access were removed:</span>
<ul class="mb-1">
<li t-foreach="removed_access" t-as="access">
<span t-out="partner_map.get(access).name"/>
</li>
</ul>
</t>
</template>
</data>
</odoo>