[FIX] website_sale: confirm sale order on payment_confirmation

Same behavior than in saas-5
This commit is contained in:
Denis Ledoux 2014-08-01 14:48:16 +02:00
parent e79a3675d1
commit 0023955074
1 changed files with 1 additions and 0 deletions

View File

@ -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)