diff options
| author | Cedric Snauwaert <csn@openerp.com> | 2017-06-23 11:48:41 +0200 |
|---|---|---|
| committer | Cedric Snauwaert <csn@openerp.com> | 2017-06-23 11:48:44 +0200 |
| commit | e3d5176a41dd50f0dbd2f228e2f7b67c4cd42919 (patch) | |
| tree | a0a37b5772d8324007c4add7f31529756ab25f49 /addons | |
| parent | bbc47177ce8b1412e1d5452451e812c5aafcf34b (diff) | |
[FIX] rating: after posting a rate, don't redirect to backend
Some user might be logged but not have the right to access issue or task.
Plus it does not make any sense to redirect to backend after rating a task or an issue.
OPW: 748579
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/rating/controllers/main.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/addons/rating/controllers/main.py b/addons/rating/controllers/main.py index 2782ffc3350..a625dcec0be 100644 --- a/addons/rating/controllers/main.py +++ b/addons/rating/controllers/main.py @@ -34,9 +34,6 @@ class Rating(http.Controller): return request.not_found() record_sudo = request.env[rating.res_model].sudo().browse(rating.res_id) record_sudo.rating_apply(rate, token=token, feedback=kwargs.get('feedback')) - # redirect to the form view if logged person - if request.session.uid: - return werkzeug.utils.redirect('/web#model=%s&id=%s&view_type=form' % (record_sudo._name, record_sudo.id)) return request.render('rating.rating_external_page_view', { 'web_base_url': request.env['ir.config_parameter'].sudo().get_param('web.base.url'), 'rating': rating, |
