[FIX]account_payment_order_notification: Email template fix

This commit is contained in:
manu
2023-07-19 10:32:27 +02:00
parent 6b00e84f55
commit 291b797cef
3 changed files with 177 additions and 155 deletions

View File

@@ -22,28 +22,32 @@
<p>A payment order including at least one of your invoices has been processed and sent to the bank.</p> <p>A payment order including at least one of your invoices has been processed and sent to the bank.</p>
% endif % endif
<p>It includes the following transactions:</p> <p>It includes the following transactions:</p>
<table> <table width="100%">
<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>
<tbody> <tbody>
% for payment_line in object.payment_line_ids: <tr style="border-bottom:2px solid #dee2e6;">
<tr> <td style="width:40%;"><strong>Number</strong></td>
% 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 width="30%"><strong>Date</strong></td>
<td>${payment_line.move_line_id.move_id.ref}</td> <td width="30%"><strong>Amount</strong></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> </tr>
% endfor
</tbody> </tbody>
</table> </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> <p>Do not hesitate to contact us if you have any questions.</p>
</div> </div>
]]></field> ]]></field>

View File

@@ -348,90 +348,94 @@ msgstr ""
msgid "Wizard Account Payment Order Notification Line" msgid "Wizard Account Payment Order Notification Line"
msgstr "" msgstr ""
#~ msgid "" msgid ""
#~ "\n" "\n"
#~ "<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-" "<div style=\"font-family:'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
#~ "serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; " "serif;font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
#~ "\">\n" " <p>Hello ${object.partner_id.name or ''},</p>\n"
#~ " <p>Hello ${object.partner_id.name or ''},</p>\n" " % if object.order_id.payment_type == 'inbound':\n"
#~ " % if object.order_id.payment_type == 'inbound':\n" " <p>A debit order including at least one of your invoices has been "
#~ " <p>A debit order including at least one of your invoices has been " "processed and sent to the bank.</p>\n"
#~ "processed and sent to the bank.</p>\n" " % else:\n"
#~ " % else:\n" " <p>A payment order including at least one of your invoices has been "
#~ " <p>A payment order including at least one of your invoices has " "processed and sent to the bank.</p>\n"
#~ "been processed and sent to the bank.</p>\n" " % endif\n"
#~ " % endif\n" " <p>It includes the following transactions:</p>\n"
#~ " <p>It includes the following transactions:</p>\n" " <table width=\"100%\" ;\"=\"\">\n"
#~ " <table>\n" " <tbody>\n"
#~ " <thead>\n" " <tr style=\"border-bottom:2px solid #dee2e6;\">\n"
#~ " <tr style=\"height: 15px; background-color: #d8d8d8;font-" " <td style=\"width:40%;\"><strong>Number</strong></td>\n"
#~ "size: 13px;font-weight:bold;\" align=\"center\" valign=\"middle\">\n" " <td width=\"30%\"><strong>Date</strong></td>\n"
#~ " <td>Number</td>\n" " <td width=\"30%\"><strong>Amount</strong></td>\n"
#~ " <td>Date</td>\n" " </tr>\n"
#~ " <td>Amount</td>\n" " </tbody>\n"
#~ " </tr>\n" " </table>\n"
#~ " </thead>\n" " % for payment_line in object.payment_line_ids: \n"
#~ " <tbody>\n" " <table width=\"100%\" ;=\"\">\n"
#~ " % for payment_line in object.payment_line_ids:\n" " <tbody>\n"
#~ " <tr>\n" " <tr>\n"
#~ " % if payment_line.move_line_id.move_id.move_type in " " <td width=\"40%\">\n"
#~ "(\"in_invoice\", \"in_refund\") and payment_line.move_line_id.move_id." " % if payment_line.move_line_id.move_id.move_type in "
#~ "ref:\n" "(\"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" " ${payment_line.move_line_id.move_id.ref}\n"
#~ " % else:\n" " % else:\n"
#~ " <td>${payment_line.communication}</td>\n" " ${payment_line.communication}\n"
#~ " % endif\n" " % endif\n"
#~ " <td>${payment_line.date}</td>\n" " </td>\n"
#~ " <td>${format_amount(payment_line.amount_currency, " " <td width=\"30%\">${format_date(payment_line.date)}</"
#~ "payment_line.currency_id)}</td>\n" "td>\n"
#~ " </tr>\n" " <td width=\"30%\">${format_amount(payment_line."
#~ " % endfor\n" "amount_currency, payment_line.currency_id)}</td>\n"
#~ " </tbody>\n" " </tr>\n"
#~ " </table>\n" " </tbody>\n"
#~ " <p>Do not hesitate to contact us if you have any questions.</p>\n" " </table>\n"
#~ "</div>\n" " % endfor\n"
#~ " " " <p>Do not hesitate to contact us if you have any questions.</p>\n"
#~ msgstr "" "</div>\n"
#~ "\n" " "
#~ "<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-" msgstr ""
#~ "serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; " "\n"
#~ "\">\n" "<div style=\"font-family:'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
#~ " <p>Hola ${object.partner_id.name or ''},</p>\n" "serif;font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
#~ " % if object.order_id.payment_type == 'inbound':\n" " <p>Hola ${object.partner_id.name or ''},</p>\n"
#~ " <p>Se ha procesado y enviado al banco una orden de débito que " " % if object.order_id.payment_type == 'inbound':\n"
#~ "incluye al menos una de sus facturas.</p>\n" " <p>Se ha procesado y enviado al banco una orden de débito que "
#~ " % else:\n" "incluye al menos una de sus facturas.</p>\n"
#~ " <p>Se ha procesado y enviado al banco una orden de pago que " " % else:\n"
#~ "incluye al menos una de sus facturas.</p>\n" " <p>Se ha procesado y enviado al banco una orden de pago que incluye "
#~ " % endif\n" "al menos una de sus facturas.</p>\n"
#~ " <p>Incluye las siguientes transacciones:</p>\n" " % endif\n"
#~ " <table>\n" " <p>Incluye las siguientes transacciones:</p>\n"
#~ " <thead>\n" " <table width=\"100%\" ;\"=\"\">\n"
#~ " <tr style=\"height: 15px; background-color: #d8d8d8;font-" " <tbody>\n"
#~ "size: 13px;font-weight:bold;\" align=\"center\" valign=\"middle\">\n" " <tr style=\"border-bottom:2px solid #dee2e6;\">\n"
#~ " <td>Número</td>\n" " <td style=\"width:40%;\"><strong>Número</strong></td>\n"
#~ " <td>Fecha</td>\n" " <td width=\"30%\"><strong>Fecha</strong></td>\n"
#~ " <td>Importe</td>\n" " <td width=\"30%\"><strong>Importe</strong></td>\n"
#~ " </tr>\n" " </tr>\n"
#~ " </thead>\n" " </tbody>\n"
#~ " <tbody>\n" " </table>\n"
#~ " % for payment_line in object.payment_line_ids:\n" " % for payment_line in object.payment_line_ids: \n"
#~ " <tr>\n" " <table width=\"100%\" ;=\"\">\n"
#~ " % if payment_line.move_line_id.move_id.move_type in " " <tbody>\n"
#~ "(\"in_invoice\", \"in_refund\") and payment_line.move_line_id.move_id." " <tr>\n"
#~ "ref:\n" " <td width=\"40%\">\n"
#~ " <td>${payment_line.move_line_id.move_id.ref}</td>\n" " % if payment_line.move_line_id.move_id.move_type in "
#~ " % else:\n" "(\"in_invoice\", \"in_refund\") and payment_line.move_line_id.move_id.ref:\n"
#~ " <td>${payment_line.communication}</td>\n" " ${payment_line.move_line_id.move_id.ref}\n"
#~ " % endif\n" " % else:\n"
#~ " <td>${payment_line.date}</td>\n" " ${payment_line.communication}\n"
#~ " <td>${format_amount(payment_line.amount_currency, " " % endif\n"
#~ "payment_line.currency_id)}</td>\n" " </td>\n"
#~ " </tr>\n" " <td width=\"30%\">${format_date(payment_line.date)}</"
#~ " % endfor\n" "td>\n"
#~ " </tbody>\n" " <td width=\"30%\">${format_amount(payment_line."
#~ " </table>\n" "amount_currency, payment_line.currency_id)}</td>\n"
#~ " <p>No dude en ponerse en contacto con nosotros si tiene alguna " " </tr>\n"
#~ "pregunta.</p>\n" " </tbody>\n"
#~ "</div>\n" " </table>\n"
#~ " " " % endfor\n"
" <p>No dude en ponerse en contacto con nosotros si tiene alguna pregunta."
"</p>\n"
"</div>\n"
" "

View File

@@ -20,36 +20,46 @@ msgstr ""
#: model:mail.template,body_html:account_payment_order_notification.email_account_payment_order_notification #: model:mail.template,body_html:account_payment_order_notification.email_account_payment_order_notification
msgid "" msgid ""
"\n" "\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" " <p>Hello ${object.partner_id.name or ''},</p>\n"
" % if object.order_id.payment_type == 'inbound':\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" " % 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" " % endif\n"
" <p>It includes the following transactions:</p>\n" " <p>It includes the following transactions:</p>\n"
" <table>\n" " <table width=\"100%\" ;\"=\"\">\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" " <tbody>\n"
" % for payment_line in object.payment_line_ids:\n" " <tr style=\"border-bottom:2px solid #dee2e6;\">\n"
" <tr>\n" " <td style=\"width:40%;\"><strong>Number</strong></td>\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 width=\"30%\"><strong>Date</strong></td>\n"
" <td>${payment_line.move_line_id.move_id.ref}</td>\n" " <td width=\"30%\"><strong>Amount</strong></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>\n" " </tr>\n"
" % endfor\n"
" </tbody>\n" " </tbody>\n"
" </table>\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" " <p>Do not hesitate to contact us if you have any questions.</p>\n"
"</div>\n" "</div>\n"
" " " "
@@ -57,7 +67,7 @@ msgstr ""
"\n" "\n"
"<div style=\"font-family:'Lucida Grande', Ubuntu, Arial, Verdana, sans-" "<div style=\"font-family:'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
"serif;font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n" "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" " % if object.order_id.payment_type == 'inbound':\n"
" <p>Un ordre de débit comprenant au moins une de vos factures a été " " <p>Un ordre de débit comprenant au moins une de vos factures a été "
"traité et envoyé à la banque.</p>\n" "traité et envoyé à la banque.</p>\n"
@@ -66,33 +76,37 @@ msgstr ""
"été traité et envoyé à la banque.</p>\n" "été traité et envoyé à la banque.</p>\n"
" % endif\n" " % endif\n"
" <p>Il comprend les transactions suivantes :</p>\n" " <p>Il comprend les transactions suivantes :</p>\n"
" <table>\n" " <table width=\"100%\" ;\"=\"\">\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"
" <tbody>\n" " <tbody>\n"
" % for payment_line in object.payment_line_ids : \n" " <tr style=\"border-bottom:2px solid #dee2e6;\">\n"
" <tr>\n" " <td style=\"width:40%;\"><strong>Nombre</strong></td>\n"
" % if payment_line.move_line_id.move_id.move_type in (" " <td width=\"30%\"><strong>Date</strong></td>\n"
"\"in_invoice\", \"in_refund\") and payment_line.move_line_id.move_id.ref:" " <td width=\"30%\"><strong>Quantité</strong></td>\n"
" \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>\n" " </tr>\n"
" % endfor\n"
" </tbody>\n" " </tbody>\n"
" </table>\n" " </table>\n"
" <p>Nhé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>Nhésitez pas à nous contacter si vous avez des questions."
"</p>\n"
"</div>\n" "</div>\n"
" " " "