diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2016-10-28 11:20:00 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2016-10-28 11:20:00 +0200 |
| commit | b9d1239effbb35f5e5d929e07df4459b14a2d220 (patch) | |
| tree | c1d1d6d9091a0e1be7f284275351888665dda899 | |
| parent | 92d2916a67b03b7c598667d16a0ef78c459f6270 (diff) | |
[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
| -rw-r--r-- | addons/website_quote/controllers/main.py | 1 |
1 files changed, 1 insertions, 0 deletions
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: |
