168 lines
7.6 KiB
XML
168 lines
7.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<flectra>
|
|
<data noupdate="1">
|
|
|
|
<!--Email template -->
|
|
<record id="email_template_edi_purchase" model="mail.template">
|
|
<field name="name">RFQ - Send by Email</field>
|
|
<field name="email_from">${(object.create_uid.email and '%s <%s>' % (object.create_uid.name, object.create_uid.email) or '')|safe}</field>
|
|
<field name="subject">${object.company_id.name} Order (Ref ${object.name or 'n/a' })</field>
|
|
<field name="partner_to">${object.partner_id.id}</field>
|
|
<field name="model_id" ref="purchase.model_purchase_order"/>
|
|
<field name="auto_delete" eval="True"/>
|
|
<field name="report_template" ref="report_purchase_quotation"/>
|
|
<field name="report_name">RFQ_${(object.name or '').replace('/','_')}</field>
|
|
<field name="lang">${object.partner_id.lang}</field>
|
|
<field name="body_html"><![CDATA[
|
|
<p>Dear
|
|
% if object.partner_id.is_company and object.partner_id.child_ids:
|
|
${object.partner_id.child_ids[0].name}
|
|
% else :
|
|
${object.partner_id.name}
|
|
% endif
|
|
,</p><p>
|
|
Here is, in attachment, a ${object.state in ('draft', 'sent') and 'request for quotation' or 'purchase order confirmation'} <strong>${object.name}</strong>
|
|
% if object.partner_ref:
|
|
with reference: ${object.partner_ref}
|
|
% endif
|
|
% if object.origin:
|
|
(RFQ origin: ${object.origin})
|
|
% endif
|
|
amounting in <strong>${format_amount(object.amount_total, object.currency_id)}</strong>
|
|
from ${object.company_id.name}.
|
|
</p>
|
|
|
|
<p>Do not hesitate to contact us, further you have any question.</p>
|
|
<p>Best regards,</p>
|
|
<p style="color:#888888;">
|
|
% if object.user_id and object.user_id.signature:
|
|
${object.user_id.signature | safe}
|
|
% endif
|
|
</p>
|
|
]]></field>
|
|
</record>
|
|
|
|
|
|
<!--Email template -->
|
|
<record id="email_template_edi_purchase_done" model="mail.template">
|
|
<field name="name">Purchase Order - Send by Email</field>
|
|
<field name="email_from">${(object.create_uid.email and '%s <%s>' % (object.create_uid.name, object.create_uid.email) or '')|safe}</field>
|
|
<field name="subject">${object.company_id.name} Order (Ref ${object.name or 'n/a' })</field>
|
|
<field name="partner_to">${object.partner_id.id}</field>
|
|
<field name="model_id" ref="purchase.model_purchase_order"/>
|
|
<field name="auto_delete" eval="True"/>
|
|
<field name="report_template" ref="action_report_purchase_order"/>
|
|
<field name="report_name">PO_${(object.name or '').replace('/','_')}</field>
|
|
<field name="lang">${object.partner_id.lang}</field>
|
|
<field name="body_html"><![CDATA[
|
|
<p>Dear ${object.partner_id.name}
|
|
% if object.partner_id.parent_id:
|
|
(<i>${object.partner_id.parent_id.name}</i>)
|
|
% endif
|
|
,</p>
|
|
<p>
|
|
Please find in attachment a <strong>${object.state in ('draft', 'sent') and 'request for quotation' or 'purchase order confirmation'} ${object.name}</strong>
|
|
% if object.partner_ref:
|
|
with reference: ${object.partner_ref}
|
|
% endif
|
|
% if object.origin:
|
|
(RFQ origin: ${object.origin})
|
|
% endif
|
|
amounting <strong>${format_amount(object.amount_total, object.currency_id)}</strong>
|
|
from ${object.company_id.name}.
|
|
</p>
|
|
|
|
<p>You can reply to this email if you have any questions.</p>
|
|
<p>Thank you,</p>
|
|
]]></field>
|
|
</record>
|
|
|
|
|
|
<!--Default Notification Email template for invoices-->
|
|
<record id="purchase.mail_template_data_notification_email_purchase_order" model="mail.template">
|
|
<field name="name">Purchase Order Notification Email</field>
|
|
<field name="subject">${object.subject}</field>
|
|
<field name="model_id" ref="mail.model_mail_message"/>
|
|
<field name="auto_delete" eval="True"/>
|
|
<field name="body_html"><![CDATA[<html>
|
|
<head></head>
|
|
<body style="margin: 0; padding: 0;">
|
|
<table border="0" width="100%" cellpadding="0" bgcolor="#ededed" style="padding: 20px; background-color: #ededed" 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;">
|
|
<tr>
|
|
<td valign="middle">
|
|
<span style="font-size:20px; color:white; font-weight: bold;">
|
|
${object.record_name}
|
|
</span>
|
|
</td>
|
|
<td valign="middle" align="right">
|
|
<img src="/logo.png" style="padding: 0px; margin: 0px; height: auto; width: 80px;" alt="${user.company_id.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;">
|
|
<tbody>
|
|
<td valign="top" style="font-family:Arial,Helvetica,sans-serif; color: #555; font-size: 14px;">
|
|
${object.body | safe}
|
|
</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;">
|
|
<tr>
|
|
<td valign="middle" align="left" style="color: #fff; padding-top: 10px; padding-bottom: 10px; font-size: 12px;">
|
|
${user.company_id.name}<br/>
|
|
${user.company_id.phone or ''}
|
|
</td>
|
|
<td valign="middle" align="right" style="color: #fff; padding-top: 10px; padding-bottom: 10px; font-size: 12px;">
|
|
% if user.company_id.email:
|
|
<a href="mailto:${user.company_id.email}" style="text-decoration:none; color: white;">${user.company_id.email}</a><br/>
|
|
% endif
|
|
% if user.company_id.website:
|
|
<a href="${user.company_id.website}" style="text-decoration:none; color: white;">
|
|
${user.company_id.website}
|
|
</a>
|
|
% endif
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<!--
|
|
<tr>
|
|
<td align="center">
|
|
Powered by <a href="https://www.flectra.com">Flectra</a>.
|
|
</td>
|
|
</tr>
|
|
-->
|
|
</tbody>
|
|
</table>
|
|
</body>
|
|
</html>
|
|
]]></field>
|
|
</record>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</data>
|
|
</flectra>
|