253 lines
19 KiB
XML
253 lines
19 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="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.owner_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"
|
|
style="background-color: #875A7B; padding: 20px 30px 20px 30px; text-decoration: none; color: #fff; 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/>
|
|
<t t-out="user.signature or ''">--<br/>Mitchell Admin</t>
|
|
<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:%s' % {{ 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-attf-href="'%s' % {{ 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.ftprotech.in/app/documents" style="color: #875A7B;">Odoo Documents</a>
|
|
</td></tr>
|
|
</table>
|
|
</td></tr>
|
|
</table>
|
|
</field>
|
|
<field name="lang">{{ object.owner_id.lang }}</field>
|
|
<field name="auto_delete" eval="True"/>
|
|
</record>
|
|
|
|
<template id="mail_template_document_share">
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: white; padding: 0; border-collapse:separate; margin-bottom:13px;">
|
|
<tr><td valign="top">
|
|
<div style="margin: 0px; padding: 0px; font-size: 13px;">
|
|
<p style="margin: 0px; padding: 0px; font-size: 13px;">
|
|
<t t-if="record.name">
|
|
<t t-if="record.type == 'folder'">
|
|
<t t-out="user.name or ''"/> shared this folder with you: <t t-out="record.name"/>.<br/>
|
|
</t>
|
|
<t t-else="">
|
|
<t t-out="user.name or ''"/> shared this document with you: <t t-out="record.name"/>.<br/>
|
|
</t>
|
|
</t>
|
|
<t t-elif="record.type == 'folder'">
|
|
<t t-out="user.name or ''"/> shared a folder with you.<br/>
|
|
</t>
|
|
<t t-else="">
|
|
<t t-out="user.name or ''"/> shared a document with you.<br/>
|
|
</t>
|
|
<div t-if="message" style="color:#777; margin-top:13px;" t-out="message"/>
|
|
</p>
|
|
</div>
|
|
</td></tr>
|
|
</table>
|
|
</template>
|
|
|
|
<!-- 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="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.owner_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"
|
|
style="background-color: #875A7B; padding: 20px 30px 20px 30px; text-decoration: none; color: #fff; 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/>
|
|
<t t-out="user.signature">--<br/>Mitchell Admin</t>
|
|
<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:%s' % {{ 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.ftprotech.in/app/documents" style="color: #875A7B;">Odoo Documents</a>
|
|
</td></tr>
|
|
</table>
|
|
</td></tr>
|
|
</table>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|