Skip to content
Permalink
Browse files

[FIX] website_sale: fix authorized message

Field `auth_msg` never existed, this is an uncaught mistake. This commit
removes its usage and displays the fallback message to avoid runtime
error.

Closes #31903
  • Loading branch information...
johandem committed Mar 18, 2019
1 parent d7ca035 commit 9f6053f151b754c3e1ba4ef4f98ea1621118da48
Showing with 1 addition and 2 deletions.
  1. +1 −2 addons/website_sale/views/templates.xml
@@ -1604,8 +1604,7 @@
<span t-else="">An error occured while processing your payment. Please try again or contact your administrator.</span>
</t>
<t t-if="payment_tx_id.state == 'authorized'">
<span t-if="payment_tx_id.acquirer_id.auth_msg" t-raw="payment_tx_id.acquirer_id.auth_msg"/>
<span t-else="">Your payment has been authorized.</span>
<span>Your payment has been authorized.</span>
</t>
</div>
<div t-if="payment_tx_id.acquirer_id.post_msg" t-att-class="'card-body %s' % (

0 comments on commit 9f6053f

Please sign in to comment.
You can’t perform that action at this time.