2023-05-19 08:19:51 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
|
|
<data>
|
|
|
|
<record id="email_account_payment_order_notification" model="mail.template">
|
|
|
|
<field name="name">Payment Order Notification: Send by email</field>
|
|
|
|
<field
|
|
|
|
name="model_id"
|
|
|
|
ref="account_payment_order_notification.model_account_payment_order_notification"
|
|
|
|
/>
|
|
|
|
<field name="email_from">${user.email_formatted |safe}</field>
|
|
|
|
<field name="partner_to">${object.partner_id.id}</field>
|
|
|
|
<field
|
|
|
|
name="subject"
|
|
|
|
>${object.company_id.name} Payment Order (Ref ${object.order_id.name or 'n/a'})</field>
|
|
|
|
<field
|
|
|
|
name="body_html"
|
|
|
|
><![CDATA[
|
2024-08-26 14:11:32 +00:00
|
|
|
<div style="font-family:'Lucida Grande', Ubuntu, Arial, Verdana, sans-serif;font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
|
2023-05-19 08:19:51 +00:00
|
|
|
<p>Hello ${object.partner_id.name or ''},</p>
|
|
|
|
% if object.order_id.payment_type == 'inbound':
|
|
|
|
<p>A debit order including at least one of your invoices has been processed and sent to the bank.</p>
|
|
|
|
% else:
|
|
|
|
<p>A payment order including at least one of your invoices has been processed and sent to the bank.</p>
|
|
|
|
% endif
|
|
|
|
<p>It includes the following transactions:</p>
|
2024-08-26 14:11:32 +00:00
|
|
|
<table width="100%">
|
2023-05-19 08:19:51 +00:00
|
|
|
<tbody>
|
2024-08-26 14:11:32 +00:00
|
|
|
<tr style="border-bottom:2px solid #dee2e6;">
|
|
|
|
<td style="width:40%;"><strong>Number</strong></td>
|
|
|
|
<td width="30%"><strong>Date</strong></td>
|
|
|
|
<td width="30%"><strong>Amount</strong></td>
|
2023-05-19 08:19:51 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2024-08-26 14:11:32 +00:00
|
|
|
% for payment_line in object.payment_line_ids:
|
|
|
|
<table width="100%">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td width="40%">
|
|
|
|
% if payment_line.move_line_id.move_id.move_type in ("in_invoice", "in_refund") and payment_line.move_line_id.move_id.ref:
|
|
|
|
${payment_line.move_line_id.move_id.ref}
|
|
|
|
% else:
|
|
|
|
${payment_line.communication}
|
|
|
|
% endif
|
|
|
|
</td>
|
|
|
|
<td width="30%">${format_date(payment_line.date)}</td>
|
|
|
|
<td width="30%">${format_amount(payment_line.amount_currency, payment_line.currency_id)}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
% endfor
|
2023-05-19 08:19:51 +00:00
|
|
|
<p>Do not hesitate to contact us if you have any questions.</p>
|
|
|
|
</div>
|
|
|
|
]]></field>
|
|
|
|
<field name="lang">${object.partner_id.lang}</field>
|
|
|
|
<field name="auto_delete" eval="True" />
|
|
|
|
</record>
|
|
|
|
</data>
|