summaryrefslogtreecommitdiff
path: root/addons/website_quote/controllers/main.py
diff options
context:
space:
mode:
authortbe-odoo <tbe@odoo.com>2017-08-23 16:29:26 +0200
committertbe-odoo <tbe@odoo.com>2017-08-29 17:11:23 +0200
commit11bc680ae9d864d5e0e28ff85bad96a2c4cdc326 (patch)
treec331897dc5506d75ea9d41b89e112b1d2c75f909 /addons/website_quote/controllers/main.py
parent194d52e8fda35f7a6fd9a9e5c2e1af265e25ce4b (diff)
[IMP] payment: Remove ugly render() hack
- Removed an ugly hack that renders s2s forms then display them using t-raw, we're now providing the xml_id of the s2s forms and uses t-call instead.
Diffstat (limited to 'addons/website_quote/controllers/main.py')
-rw-r--r--addons/website_quote/controllers/main.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/addons/website_quote/controllers/main.py b/addons/website_quote/controllers/main.py
index 8098964c71e..8bbfca7fd08 100644
--- a/addons/website_quote/controllers/main.py
+++ b/addons/website_quote/controllers/main.py
@@ -61,6 +61,8 @@ class sale_quote(http.Controller):
'tx_post_msg': Transaction.acquirer_id.post_msg if Transaction else False,
'need_payment': order_sudo.invoice_status == 'to invoice' and Transaction.state in ['draft', 'cancel', 'error'],
'token': token,
+ 'return_url': '/shop/payment/validate',
+ 'bootstrap_formatting': True
}
if order_sudo.require_payment or values['need_payment']:
@@ -81,12 +83,6 @@ class sale_quote(http.Controller):
'partner_id': order_sudo.partner_id.id,
})
- for acq in values['s2s_acquirers']:
- acq.form = acq._registration_render(order_sudo.partner_id.id, {
- 'return_url': '/shop/payment/validate',
- 'bootstrap_formatting': True
- })
-
history = request.session.get('my_quotes_history', [])
values.update(get_records_pager(history, order_sudo))
return request.render('website_quote.so_quotation', values)