[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.
This commit is contained in:
--global 2014-05-22 15:34:09 +02:00
parent 8df42a88ab
commit 15e874b5c8
1 changed files with 2 additions and 1 deletions

View File

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