[FIX] website_sale: previous with adyen

When clicking on previous in Adyen payment, the customer will be
redirected in the shop and not in the confirmation page.

opw:645705
This commit is contained in:
Goffin Simon
2015-07-31 10:20:45 +02:00
parent 2d407de5d4
commit b654a33a13
+2
View File
@@ -812,6 +812,8 @@ class website_sale(http.Controller):
# clean context and session, then redirect to the confirmation page
request.website.sale_reset(context=context)
if tx and tx.state == 'draft':
return request.redirect('/shop')
return request.redirect('/shop/confirmation')