From b654a33a13c2771f794bcd70a943b38d4fdaf356 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Thu, 30 Jul 2015 17:03:20 +0200 Subject: [PATCH] [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 --- addons/website_sale/controllers/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/website_sale/controllers/main.py b/addons/website_sale/controllers/main.py index 92268684b71..9a0ced870d6 100644 --- a/addons/website_sale/controllers/main.py +++ b/addons/website_sale/controllers/main.py @@ -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')