diff --git a/account_invoice_overdue_reminder/data/mail_template.xml b/account_invoice_overdue_reminder/data/mail_template.xml index eb3473261..4169e406e 100644 --- a/account_invoice_overdue_reminder/data/mail_template.xml +++ b/account_invoice_overdue_reminder/data/mail_template.xml @@ -53,17 +53,11 @@ style="padding: 5px; border: 1px solid black;" >Past Reminders - - @@ -80,36 +74,34 @@ + t-out="dict(inv.fields_get(allfields=['move_type'])['move_type']['selection'])[inv.move_type]" + /> + style="padding: 5px; border: 1px solid black; text-align: right;" + > + t-out="format_amount(inv.amount_untaxed * (inv.move_type == 'out_refund' and -1 or 1), inv.currency_id)" + /> + style="padding: 5px; border: 1px solid black; text-align: right;" + > + t-out="format_amount(inv.amount_total * (inv.move_type == 'out_refund' and -1 or 1), inv.currency_id)" + /> + style="padding: 5px; border: 1px solid black; text-align: right;" + > + t-out="format_amount(inv.amount_residual * (inv.move_type == 'out_refund' and -1 or 1), inv.currency_id)" + /> - - - + @@ -117,23 +109,22 @@ + colspan="2" + style="padding: 5px; border: 1px solid black; font-weight: bold; text-align: right;" + > Total Residual in : + style="padding: 5px; border: 1px solid black; font-weight: bold; text-align: right;" + > + t-out="format_amount(total_residual[1], total_residual[0])" + /> - - +