diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-09-30 17:21:34 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-09-30 17:21:34 +0200 |
| commit | c813dbf0680977e73cef6b9f8eac44745a64dc39 (patch) | |
| tree | 0fecd6e7d73c01e39665ff565ac1e22aba5b8378 /addons/website_quote/controllers/main.py | |
| parent | 89c78e40cbcebca393cc162677bb82e05f0b92e8 (diff) | |
| parent | 84429ab9846e72458c47dd1163d2b83db4c5fc17 (diff) | |
[MERGE] forward port branch saas-12 up to 84429ab
Diffstat (limited to 'addons/website_quote/controllers/main.py')
| -rw-r--r-- | addons/website_quote/controllers/main.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/addons/website_quote/controllers/main.py b/addons/website_quote/controllers/main.py index d7f804a1abe..10518e58ea3 100644 --- a/addons/website_quote/controllers/main.py +++ b/addons/website_quote/controllers/main.py @@ -9,10 +9,11 @@ from odoo.addons.website_mail.controllers.main import _message_post_helper class sale_quote(http.Controller): - @http.route([ - "/quote/<int:order_id>", - "/quote/<int:order_id>/<token>" - ], type='http', auth="public", website=True) + @http.route("/quote/<int:order_id>", type='http', auth="user", website=True) + def view_user(self, *args, **kwargs): + return self.view(*args, **kwargs) + + @http.route("/quote/<int:order_id>/<token>", type='http', auth="public", website=True) def view(self, order_id, pdf=None, token=None, message=False, **post): # use sudo to allow accessing/viewing orders for public user # only if he knows the private token |
