[FIX] sale: fix mail template
Fix mail template for better intergration in sale subscription. Improve english too. task-id : 3366756 closes odoo/odoo#137988 X-original-commit: 8c94250126876009e94590e0ae5e931185fdc8b1 Related: odoo/enterprise#48605 Signed-off-by: Florian Damhaut (flda) <flda@odoo.com> Signed-off-by: Arnaud Joset (arj) <arj@odoo.com>
This commit is contained in:
@@ -262,20 +262,22 @@
|
||||
<t t-if="transaction_sudo and transaction_sudo.state == 'pending'">
|
||||
is pending.
|
||||
<br/>
|
||||
<t t-if="object.currency_id.compare_amounts(object.amount_paid + transaction_sudo.amount, object.amount_total) >= 1 and object.state in ('draft', 'sent')">
|
||||
<t t-if="object.currency_id.compare_amounts(object.amount_paid + transaction_sudo.amount, object.amount_total) >= 0 and object.state in ('draft', 'sent')">
|
||||
Your order will be confirmed once the payment is confirmed.
|
||||
</t>
|
||||
<t t-else="">
|
||||
Once confirmed it will remain
|
||||
Once confirmed,
|
||||
<span style="font-weight:bold;" t-out="format_amount(object.amount_total - object.amount_paid - transaction_sudo.amount, object.currency_id) or ''">$ 10.00</span>
|
||||
to pay.
|
||||
will remain to be paid.
|
||||
</t>
|
||||
</t>
|
||||
<t t-else="">
|
||||
has been confirmed.
|
||||
<br/>
|
||||
It remains <span style="font-weight:bold;" t-out="format_amount(object.amount_total - object.amount_paid, object.currency_id) or ''">$ 10.00</span>
|
||||
to be paid.
|
||||
<t t-if="object.currency_id.compare_amounts(object.amount_paid, object.amount_total) < 0">
|
||||
<br/>
|
||||
<span style="font-weight:bold;" t-out="format_amount(object.amount_total - object.amount_paid, object.currency_id) or ''">$ 10.00</span>
|
||||
remains to be paid.
|
||||
</t>
|
||||
</t>
|
||||
<br/><br/>
|
||||
Thank you for your trust!
|
||||
|
||||
Reference in New Issue
Block a user