Skip to content
Browse files

[FIX] website_sale: reset tx in session if it doesn't exist

  • Loading branch information...
yelizariev committed Feb 18, 2019
1 parent 5a6c523 commit cf09c5f68f2f1ebbf2680fa46698f52d2e336451
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/website_sale/models/
@@ -488,7 +488,7 @@ def sale_get_transaction(self):
# - Be redirected to SIPS website again => error
# Since there is no link module between 'website_sale' and 'payment_sips', we prevent
# here to reuse any previous transaction for SIPS.
if transaction.state != 'cancel' and transaction.acquirer_id.provider != 'sips':
if transaction.exists() and transaction.state != 'cancel' and transaction.acquirer_id.provider != 'sips':
return transaction
request.session['sale_transaction_id'] = False

0 comments on commit cf09c5f

Please sign in to comment.
You can’t perform that action at this time.