[IMP] website_sale: add button 'Configure Transfer Details' to configure the payment provider details.
This commit is contained in:
committed by
Valerie Pirenne
parent
897ac590b2
commit
36483a1f2f
@@ -833,6 +833,7 @@ class website_sale(http.Controller):
|
||||
values.update({
|
||||
'tx_ids': True,
|
||||
'state': state,
|
||||
'acquirer_id': tx.acquirer_id,
|
||||
'validation': tx.acquirer_id.auto_confirm == 'none',
|
||||
'tx_post_msg': tx.acquirer_id.post_msg or None
|
||||
})
|
||||
|
||||
@@ -1330,6 +1330,9 @@
|
||||
</template>
|
||||
|
||||
<template id="order_state_message" name="Order State Message">
|
||||
<t groups='base.group_system'>
|
||||
<a class="btn btn-primary pull-right" target="_blank" t-att-href="'/web#model=%s&id=%s&action=%s&view_type=form' % ('payment.acquirer',acquirer_id.id, 'payment.action_payment_acquirer')"><i class="fa fa-cog"></i> Configure Transfer Details</a>
|
||||
</t>
|
||||
<t t-if="(not_order and state == 'error') or (not tx_ids and state == 'error')">
|
||||
<p>There seems to be an error with your request.</p>
|
||||
</t>
|
||||
|
||||
Reference in New Issue
Block a user