[FIX] website_sale: confirm sale order on payment_confirmation
Same behavior than in saas-5
This commit is contained in:
parent
e79a3675d1
commit
0023955074
|
@ -673,6 +673,7 @@ class Ecommerce(http.Controller):
|
|||
|
||||
acquirer_form_post_url = payment_obj.get_form_action_url(cr, uid, acquirer_id, context=context)
|
||||
acquirer_total_url = '%s?%s' % (acquirer_form_post_url, werkzeug.url_encode(post))
|
||||
request.registry['sale.order'].action_button_confirm(cr, SUPERUSER_ID, [order.id], context=request.context)
|
||||
return request.redirect(acquirer_total_url)
|
||||
|
||||
@http.route('/shop/payment/get_status/<int:sale_order_id>', type='json', auth="public", website=True, multilang=True)
|
||||
|
|
Loading…
Reference in New Issue