Skip to content
Snippets Groups Projects
Commit 15e874b5 authored by Thibault Delavallée's avatar Thibault Delavallée
Browse files

[FIX] website_sale: still cleaning lost references to deleted code in website_sale ...

Fixed checkout redirection that was meant to clean the session (incorrect sale order or transaction) that may happen
when having issues with the payment.
parent 8df42a88
No related branches found
No related tags found
No related merge requests found
......@@ -255,7 +255,8 @@ class website_sale(http.Controller):
# must have a draft sale order with lines at this point, otherwise reset
if not order or order.state != 'draft':
request.website_sale_reset(cr, uid, context=context)
request.session['sale_order_id'] = None
request.session['sale_transaction_id'] = False
return request.redirect('/shop')
# if transaction pending / done: redirect to confirmation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment