From e3d5176a41dd50f0dbd2f228e2f7b67c4cd42919 Mon Sep 17 00:00:00 2001 From: Cedric Snauwaert Date: Fri, 23 Jun 2017 11:48:41 +0200 Subject: [PATCH] [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 --- addons/rating/controllers/main.py | 3 --- 1 file changed, 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,