From b9d1239effbb35f5e5d929e07df4459b14a2d220 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Fri, 28 Oct 2016 11:20:00 +0200 Subject: [PATCH] [FIX] website_quote: set SO id in request When a quotation is opened from the frontend, set the SO id in the request. This is necessary in the following use case: - Receive a website quote - Pay thanks to Stripe After commit da82a6b70553e, we call the route `/shop/payment/transaction/` manually. However, this route expects to retrieve the SO id thanks to a call to `sale_get_order`. Since we are not going through the webshop and the user might not be connected, the method is unable to retrieve the SO id. opw-692341 --- addons/website_quote/controllers/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/website_quote/controllers/main.py b/addons/website_quote/controllers/main.py index 0fcb9485d76..01d36059fad 100644 --- a/addons/website_quote/controllers/main.py +++ b/addons/website_quote/controllers/main.py @@ -30,6 +30,7 @@ class sale_quote(http.Controller): if not Order: return request.render('website.404') + request.session['sale_order_id'] = Order.id days = 0 if Order.validity_date: