[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:
parent
8df42a88ab
commit
15e874b5c8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue