[FIX] website_sale: display payment error status when applicable

opw-2231276

closes odoo/odoo#50025

X-original-commit: 52f24423488fe919ddf40ee64c32e1c4818f2548
Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
This commit is contained in:
Damien Bouvy
2020-04-22 16:54:28 +00:00
parent 3b444b31d5
commit fff9d7dcee
+3
View File
@@ -1627,6 +1627,9 @@
<t t-if="payment_tx_id.state == 'authorized'">
<span>Your payment has been authorized.</span>
</t>
<t t-if="payment_tx_id.state == 'error'">
<span t-esc="payment_tx_id.state_message"/>
</t>
</div>
<div t-if="payment_tx_id.acquirer_id.provider == 'transfer' and order.reference" class="card-body">
<b>Communication: </b><span t-esc='order.reference'/>