[FIX] website_sale: user going to /shop/payment/validate/ without pass by mycart and add to cart

bzr revid: chm@openerp.com-20131203133345-0e7k3ab87u1d3we7
This commit is contained in:
Christophe Matthieu
2013-12-03 14:33:45 +01:00
parent a7738ab2ea
commit 06f96e4dea
+2
View File
@@ -675,6 +675,8 @@ class Ecommerce(http.Controller):
if transaction_id is None:
tx = context.get('website_sale_transaction')
if not tx:
return request.redirect('/shop/')
else:
tx = request.registry['payment.transaction'].browse(cr, uid, transaction_id, context=context)