Missed while merging.

This commit is contained in:
Paramjit Singh Sahota 2014-05-08 18:51:17 +05:30
parent f1dd083521
commit 2fe8beac28
1 changed files with 2 additions and 2 deletions

View File

@ -260,7 +260,7 @@ class website_sale(http.Controller):
# if transaction pending / done: redirect to confirmation
tx = context.get('website_sale_transaction')
if tx and tx.state != 'shopping_cart':
if tx.state != 'shopping_cart':
return request.redirect('/shop/payment/confirmation/%s' % order.id)
def checkout_values(self, data=None):
@ -537,7 +537,7 @@ class website_sale(http.Controller):
'sale_order_id': order.id,
}, context=context)
request.session['sale_transaction_id'] = tx_id
elif tx and tx.state == 'shopping_cart': # button cliked but no more info -> rewrite on tx or create a new one ?
elif tx.state == 'shopping_cart': # button cliked but no more info -> rewrite on tx or create a new one ?
tx.write({
'acquirer_id': acquirer_id,
})