mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX]account_payment_order_notification: Email template fix
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<field
|
||||
name="body_html"
|
||||
><![CDATA[
|
||||
<div style="font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
|
||||
<div style="font-family:'Lucida Grande', Ubuntu, Arial, Verdana, sans-serif;font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
|
||||
<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>
|
||||
@@ -22,28 +22,32 @@
|
||||
<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>
|
||||
<table>
|
||||
<thead>
|
||||
<tr style="height: 15px; background-color: #d8d8d8;font-size: 13px;font-weight:bold;" align="center" valign="middle">
|
||||
<td>Number</td>
|
||||
<td>Date</td>
|
||||
<td>Amount</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<table width="100%">
|
||||
<tbody>
|
||||
% for payment_line in object.payment_line_ids:
|
||||
<tr>
|
||||
% if payment_line.move_line_id.move_id.move_type in ("in_invoice", "in_refund") and payment_line.move_line_id.move_id.ref:
|
||||
<td>${payment_line.move_line_id.move_id.ref}</td>
|
||||
% else:
|
||||
<td>${payment_line.communication}</td>
|
||||
% endif
|
||||
<td>${format_date(payment_line.date)}</td>
|
||||
<td>${format_amount(payment_line.amount_currency, payment_line.currency_id)}</td>
|
||||
<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>
|
||||
</tr>
|
||||
% endfor
|
||||
</tbody>
|
||||
</table>
|
||||
% 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
|
||||
<p>Do not hesitate to contact us if you have any questions.</p>
|
||||
</div>
|
||||
]]></field>
|
||||
|
||||
Reference in New Issue
Block a user