[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-30 17:03:20 +02:00
parent 2d407de5d4
commit b654a33a13
1 changed files with 2 additions and 0 deletions

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