[IMP] website_sale: add button 'Configure Transfer Details' to configure the payment provider details.

This commit is contained in:
rmu-odoo
2015-09-16 11:30:50 +02:00
committed by Valerie Pirenne
parent 897ac590b2
commit 36483a1f2f
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -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
})
+3
View File
@@ -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&amp;id=%s&amp;action=%s&amp;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>