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:
@@ -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>
|
||||
|
||||
@@ -348,90 +348,94 @@ msgstr ""
|
||||
msgid "Wizard Account Payment Order Notification Line"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "\n"
|
||||
#~ "<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
|
||||
#~ "serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; "
|
||||
#~ "\">\n"
|
||||
#~ " <p>Hello ${object.partner_id.name or ''},</p>\n"
|
||||
#~ " % if object.order_id.payment_type == 'inbound':\n"
|
||||
#~ " <p>A debit order including at least one of your invoices has been "
|
||||
#~ "processed and sent to the bank.</p>\n"
|
||||
#~ " % else:\n"
|
||||
#~ " <p>A payment order including at least one of your invoices has "
|
||||
#~ "been processed and sent to the bank.</p>\n"
|
||||
#~ " % endif\n"
|
||||
#~ " <p>It includes the following transactions:</p>\n"
|
||||
#~ " <table>\n"
|
||||
#~ " <thead>\n"
|
||||
#~ " <tr style=\"height: 15px; background-color: #d8d8d8;font-"
|
||||
#~ "size: 13px;font-weight:bold;\" align=\"center\" valign=\"middle\">\n"
|
||||
#~ " <td>Number</td>\n"
|
||||
#~ " <td>Date</td>\n"
|
||||
#~ " <td>Amount</td>\n"
|
||||
#~ " </tr>\n"
|
||||
#~ " </thead>\n"
|
||||
#~ " <tbody>\n"
|
||||
#~ " % for payment_line in object.payment_line_ids:\n"
|
||||
#~ " <tr>\n"
|
||||
#~ " % if payment_line.move_line_id.move_id.move_type in "
|
||||
#~ "(\"in_invoice\", \"in_refund\") and payment_line.move_line_id.move_id."
|
||||
#~ "ref:\n"
|
||||
#~ " <td>${payment_line.move_line_id.move_id.ref}</td>\n"
|
||||
#~ " % else:\n"
|
||||
#~ " <td>${payment_line.communication}</td>\n"
|
||||
#~ " % endif\n"
|
||||
#~ " <td>${payment_line.date}</td>\n"
|
||||
#~ " <td>${format_amount(payment_line.amount_currency, "
|
||||
#~ "payment_line.currency_id)}</td>\n"
|
||||
#~ " </tr>\n"
|
||||
#~ " % endfor\n"
|
||||
#~ " </tbody>\n"
|
||||
#~ " </table>\n"
|
||||
#~ " <p>Do not hesitate to contact us if you have any questions.</p>\n"
|
||||
#~ "</div>\n"
|
||||
#~ " "
|
||||
#~ msgstr ""
|
||||
#~ "\n"
|
||||
#~ "<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
|
||||
#~ "serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; "
|
||||
#~ "\">\n"
|
||||
#~ " <p>Hola ${object.partner_id.name or ''},</p>\n"
|
||||
#~ " % if object.order_id.payment_type == 'inbound':\n"
|
||||
#~ " <p>Se ha procesado y enviado al banco una orden de débito que "
|
||||
#~ "incluye al menos una de sus facturas.</p>\n"
|
||||
#~ " % else:\n"
|
||||
#~ " <p>Se ha procesado y enviado al banco una orden de pago que "
|
||||
#~ "incluye al menos una de sus facturas.</p>\n"
|
||||
#~ " % endif\n"
|
||||
#~ " <p>Incluye las siguientes transacciones:</p>\n"
|
||||
#~ " <table>\n"
|
||||
#~ " <thead>\n"
|
||||
#~ " <tr style=\"height: 15px; background-color: #d8d8d8;font-"
|
||||
#~ "size: 13px;font-weight:bold;\" align=\"center\" valign=\"middle\">\n"
|
||||
#~ " <td>Número</td>\n"
|
||||
#~ " <td>Fecha</td>\n"
|
||||
#~ " <td>Importe</td>\n"
|
||||
#~ " </tr>\n"
|
||||
#~ " </thead>\n"
|
||||
#~ " <tbody>\n"
|
||||
#~ " % for payment_line in object.payment_line_ids:\n"
|
||||
#~ " <tr>\n"
|
||||
#~ " % if payment_line.move_line_id.move_id.move_type in "
|
||||
#~ "(\"in_invoice\", \"in_refund\") and payment_line.move_line_id.move_id."
|
||||
#~ "ref:\n"
|
||||
#~ " <td>${payment_line.move_line_id.move_id.ref}</td>\n"
|
||||
#~ " % else:\n"
|
||||
#~ " <td>${payment_line.communication}</td>\n"
|
||||
#~ " % endif\n"
|
||||
#~ " <td>${payment_line.date}</td>\n"
|
||||
#~ " <td>${format_amount(payment_line.amount_currency, "
|
||||
#~ "payment_line.currency_id)}</td>\n"
|
||||
#~ " </tr>\n"
|
||||
#~ " % endfor\n"
|
||||
#~ " </tbody>\n"
|
||||
#~ " </table>\n"
|
||||
#~ " <p>No dude en ponerse en contacto con nosotros si tiene alguna "
|
||||
#~ "pregunta.</p>\n"
|
||||
#~ "</div>\n"
|
||||
#~ " "
|
||||
msgid ""
|
||||
"\n"
|
||||
"<div style=\"font-family:'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
|
||||
"serif;font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
|
||||
" <p>Hello ${object.partner_id.name or ''},</p>\n"
|
||||
" % if object.order_id.payment_type == 'inbound':\n"
|
||||
" <p>A debit order including at least one of your invoices has been "
|
||||
"processed and sent to the bank.</p>\n"
|
||||
" % else:\n"
|
||||
" <p>A payment order including at least one of your invoices has been "
|
||||
"processed and sent to the bank.</p>\n"
|
||||
" % endif\n"
|
||||
" <p>It includes the following transactions:</p>\n"
|
||||
" <table width=\"100%\" ;\"=\"\">\n"
|
||||
" <tbody>\n"
|
||||
" <tr style=\"border-bottom:2px solid #dee2e6;\">\n"
|
||||
" <td style=\"width:40%;\"><strong>Number</strong></td>\n"
|
||||
" <td width=\"30%\"><strong>Date</strong></td>\n"
|
||||
" <td width=\"30%\"><strong>Amount</strong></td>\n"
|
||||
" </tr>\n"
|
||||
" </tbody>\n"
|
||||
" </table>\n"
|
||||
" % for payment_line in object.payment_line_ids: \n"
|
||||
" <table width=\"100%\" ;=\"\">\n"
|
||||
" <tbody>\n"
|
||||
" <tr>\n"
|
||||
" <td width=\"40%\">\n"
|
||||
" % if payment_line.move_line_id.move_id.move_type in "
|
||||
"(\"in_invoice\", \"in_refund\") and payment_line.move_line_id.move_id.ref:\n"
|
||||
" ${payment_line.move_line_id.move_id.ref}\n"
|
||||
" % else:\n"
|
||||
" ${payment_line.communication}\n"
|
||||
" % endif\n"
|
||||
" </td>\n"
|
||||
" <td width=\"30%\">${format_date(payment_line.date)}</"
|
||||
"td>\n"
|
||||
" <td width=\"30%\">${format_amount(payment_line."
|
||||
"amount_currency, payment_line.currency_id)}</td>\n"
|
||||
" </tr>\n"
|
||||
" </tbody>\n"
|
||||
" </table>\n"
|
||||
" % endfor\n"
|
||||
" <p>Do not hesitate to contact us if you have any questions.</p>\n"
|
||||
"</div>\n"
|
||||
" "
|
||||
msgstr ""
|
||||
"\n"
|
||||
"<div style=\"font-family:'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
|
||||
"serif;font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
|
||||
" <p>Hola ${object.partner_id.name or ''},</p>\n"
|
||||
" % if object.order_id.payment_type == 'inbound':\n"
|
||||
" <p>Se ha procesado y enviado al banco una orden de débito que "
|
||||
"incluye al menos una de sus facturas.</p>\n"
|
||||
" % else:\n"
|
||||
" <p>Se ha procesado y enviado al banco una orden de pago que incluye "
|
||||
"al menos una de sus facturas.</p>\n"
|
||||
" % endif\n"
|
||||
" <p>Incluye las siguientes transacciones:</p>\n"
|
||||
" <table width=\"100%\" ;\"=\"\">\n"
|
||||
" <tbody>\n"
|
||||
" <tr style=\"border-bottom:2px solid #dee2e6;\">\n"
|
||||
" <td style=\"width:40%;\"><strong>Número</strong></td>\n"
|
||||
" <td width=\"30%\"><strong>Fecha</strong></td>\n"
|
||||
" <td width=\"30%\"><strong>Importe</strong></td>\n"
|
||||
" </tr>\n"
|
||||
" </tbody>\n"
|
||||
" </table>\n"
|
||||
" % for payment_line in object.payment_line_ids: \n"
|
||||
" <table width=\"100%\" ;=\"\">\n"
|
||||
" <tbody>\n"
|
||||
" <tr>\n"
|
||||
" <td width=\"40%\">\n"
|
||||
" % if payment_line.move_line_id.move_id.move_type in "
|
||||
"(\"in_invoice\", \"in_refund\") and payment_line.move_line_id.move_id.ref:\n"
|
||||
" ${payment_line.move_line_id.move_id.ref}\n"
|
||||
" % else:\n"
|
||||
" ${payment_line.communication}\n"
|
||||
" % endif\n"
|
||||
" </td>\n"
|
||||
" <td width=\"30%\">${format_date(payment_line.date)}</"
|
||||
"td>\n"
|
||||
" <td width=\"30%\">${format_amount(payment_line."
|
||||
"amount_currency, payment_line.currency_id)}</td>\n"
|
||||
" </tr>\n"
|
||||
" </tbody>\n"
|
||||
" </table>\n"
|
||||
" % endfor\n"
|
||||
" <p>No dude en ponerse en contacto con nosotros si tiene alguna pregunta."
|
||||
"</p>\n"
|
||||
"</div>\n"
|
||||
" "
|
||||
|
||||
@@ -20,36 +20,46 @@ msgstr ""
|
||||
#: model:mail.template,body_html:account_payment_order_notification.email_account_payment_order_notification
|
||||
msgid ""
|
||||
"\n"
|
||||
"<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
|
||||
"<div style=\"font-family:'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
|
||||
"serif;font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
|
||||
" <p>Hello ${object.partner_id.name or ''},</p>\n"
|
||||
" % if object.order_id.payment_type == 'inbound':\n"
|
||||
" <p>A debit order including at least one of your invoices has been processed and sent to the bank.</p>\n"
|
||||
" <p>A debit order including at least one of your invoices has been "
|
||||
"processed and sent to the bank.</p>\n"
|
||||
" % else:\n"
|
||||
" <p>A payment order including at least one of your invoices has been processed and sent to the bank.</p>\n"
|
||||
" <p>A payment order including at least one of your invoices has been "
|
||||
"processed and sent to the bank.</p>\n"
|
||||
" % endif\n"
|
||||
" <p>It includes the following transactions:</p>\n"
|
||||
" <table>\n"
|
||||
" <thead>\n"
|
||||
" <tr style=\"height: 15px; background-color: #d8d8d8;font-size: 13px;font-weight:bold;\" align=\"center\" valign=\"middle\">\n"
|
||||
" <td>Number</td>\n"
|
||||
" <td>Date</td>\n"
|
||||
" <td>Amount</td>\n"
|
||||
" </tr>\n"
|
||||
" </thead>\n"
|
||||
" <table width=\"100%\" ;\"=\"\">\n"
|
||||
" <tbody>\n"
|
||||
" % for payment_line in object.payment_line_ids:\n"
|
||||
" <tr>\n"
|
||||
" % if payment_line.move_line_id.move_id.move_type in (\"in_invoice\", \"in_refund\") and payment_line.move_line_id.move_id.ref:\n"
|
||||
" <td>${payment_line.move_line_id.move_id.ref}</td>\n"
|
||||
" % else:\n"
|
||||
" <td>${payment_line.communication}</td>\n"
|
||||
" % endif\n"
|
||||
" <td>${format_date(payment_line.date)}</td>\n"
|
||||
" <td>${format_amount(payment_line.amount_currency, payment_line.currency_id)}</td>\n"
|
||||
" <tr style=\"border-bottom:2px solid #dee2e6;\">\n"
|
||||
" <td style=\"width:40%;\"><strong>Number</strong></td>\n"
|
||||
" <td width=\"30%\"><strong>Date</strong></td>\n"
|
||||
" <td width=\"30%\"><strong>Amount</strong></td>\n"
|
||||
" </tr>\n"
|
||||
" % endfor\n"
|
||||
" </tbody>\n"
|
||||
" </table>\n"
|
||||
" % for payment_line in object.payment_line_ids: \n"
|
||||
" <table width=\"100%\" ;=\"\">\n"
|
||||
" <tbody>\n"
|
||||
" <tr>\n"
|
||||
" <td width=\"40%\">\n"
|
||||
" % if payment_line.move_line_id.move_id.move_type in "
|
||||
"(\"in_invoice\", \"in_refund\") and payment_line.move_line_id.move_id.ref:\n"
|
||||
" ${payment_line.move_line_id.move_id.ref}\n"
|
||||
" % else:\n"
|
||||
" ${payment_line.communication}\n"
|
||||
" % endif\n"
|
||||
" </td>\n"
|
||||
" <td width=\"30%\">${format_date(payment_line.date)}</"
|
||||
"td>\n"
|
||||
" <td width=\"30%\">${format_amount(payment_line."
|
||||
"amount_currency, payment_line.currency_id)}</td>\n"
|
||||
" </tr>\n"
|
||||
" </tbody>\n"
|
||||
" </table>\n"
|
||||
" % endfor\n"
|
||||
" <p>Do not hesitate to contact us if you have any questions.</p>\n"
|
||||
"</div>\n"
|
||||
" "
|
||||
@@ -57,7 +67,7 @@ msgstr ""
|
||||
"\n"
|
||||
"<div style=\"font-family:'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
|
||||
"serif;font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
|
||||
" <p>Bonjour ${object.partner_id.name ou ''},</p>\n"
|
||||
" <p>Bonjour ${object.partner_id.name or ''},</p>\n"
|
||||
" % if object.order_id.payment_type == 'inbound':\n"
|
||||
" <p>Un ordre de débit comprenant au moins une de vos factures a été "
|
||||
"traité et envoyé à la banque.</p>\n"
|
||||
@@ -66,33 +76,37 @@ msgstr ""
|
||||
"été traité et envoyé à la banque.</p>\n"
|
||||
" % endif\n"
|
||||
" <p>Il comprend les transactions suivantes :</p>\n"
|
||||
" <table>\n"
|
||||
" <thead>\n"
|
||||
" <tr style=\"height: 15px; background-color: #d8d8d8;font-size: "
|
||||
"13px;font-weight:bold;\" align=\"center\" valign=\"middle\">\n"
|
||||
" <td>Nombre</td>\n"
|
||||
" <td>Date</td>\n"
|
||||
" <td>Quantité</td>\n"
|
||||
" </tr>\n"
|
||||
" </thead>\n"
|
||||
" <table width=\"100%\" ;\"=\"\">\n"
|
||||
" <tbody>\n"
|
||||
" % for payment_line in object.payment_line_ids : \n"
|
||||
" <tr>\n"
|
||||
" % if payment_line.move_line_id.move_id.move_type in ("
|
||||
"\"in_invoice\", \"in_refund\") and payment_line.move_line_id.move_id.ref:"
|
||||
" \n"
|
||||
" <td>${payment_line.move_line_id.move_id.ref}</td>\n"
|
||||
" % else:\n"
|
||||
" <td>${payment_line.communication}</td>\n"
|
||||
" % endif\n"
|
||||
" <td>${format_date(payment_line.date)}</td>\n"
|
||||
" <td>${format_amount(payment_line.amount_currency, "
|
||||
"payment_line.currency_id)}</td>\n"
|
||||
" <tr style=\"border-bottom:2px solid #dee2e6;\">\n"
|
||||
" <td style=\"width:40%;\"><strong>Nombre</strong></td>\n"
|
||||
" <td width=\"30%\"><strong>Date</strong></td>\n"
|
||||
" <td width=\"30%\"><strong>Quantité</strong></td>\n"
|
||||
" </tr>\n"
|
||||
" % endfor\n"
|
||||
" </tbody>\n"
|
||||
" </table>\n"
|
||||
" <p>N’hésitez pas à nous contacter si vous avez des questions.</p>\n"
|
||||
" % for payment_line in object.payment_line_ids: \n"
|
||||
" <table width=\"100%\" ;=\"\">\n"
|
||||
" <tbody>\n"
|
||||
" <tr>\n"
|
||||
" <td width=\"40%\">\n"
|
||||
" % if payment_line.move_line_id.move_id.move_type in "
|
||||
"(\"in_invoice\", \"in_refund\") and payment_line.move_line_id.move_id.ref:\n"
|
||||
" ${payment_line.move_line_id.move_id.ref}\n"
|
||||
" % else:\n"
|
||||
" ${payment_line.communication}\n"
|
||||
" % endif\n"
|
||||
" </td>\n"
|
||||
" <td width=\"30%\">${format_date(payment_line.date)}</"
|
||||
"td>\n"
|
||||
" <td width=\"30%\">${format_amount(payment_line."
|
||||
"amount_currency, payment_line.currency_id)}</td>\n"
|
||||
" </tr>\n"
|
||||
" </tbody>\n"
|
||||
" </table>\n"
|
||||
" % endfor\n"
|
||||
" <p>N’hésitez pas à nous contacter si vous avez des questions."
|
||||
"</p>\n"
|
||||
"</div>\n"
|
||||
" "
|
||||
|
||||
|
||||
Reference in New Issue
Block a user