From fef7ec7c9759ef4356cbf5c595b0fc77ed690e2d Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Fri, 11 Oct 2019 13:53:51 +0000 Subject: [PATCH] [FIX] website,*: remove useless route from sitemap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit preparation for cleaning of v13 task-2065018 closes odoo/odoo#39051 X-original-commit: 8a0fc6476c70a4126043de3b3efbd1096e41f968 Signed-off-by: Jérémy Kersten (jke) --- addons/project/controllers/rating.py | 2 +- addons/survey/controllers/main.py | 2 +- addons/test_website/controllers/main.py | 2 +- .../test_website/data/test_website_data.xml | 1 + addons/website/controllers/main.py | 2 +- .../views/website_crm_templates.xml | 10 +++++----- .../views/website_form_templates.xml | 1 + addons/website_google_map/controllers/main.py | 2 +- .../website_hr_recruitment_templates.xml | 1 + addons/website_livechat/controllers/main.py | 2 +- addons/website_sale/controllers/main.py | 20 +++++++++---------- .../controllers/main.py | 2 +- .../website_sale_wishlist/controllers/main.py | 2 +- 13 files changed, 26 insertions(+), 23 deletions(-) diff --git a/addons/project/controllers/rating.py b/addons/project/controllers/rating.py index 3df60f3f063..b3af39a3d68 100644 --- a/addons/project/controllers/rating.py +++ b/addons/project/controllers/rating.py @@ -9,7 +9,7 @@ from odoo.http import request class RatingProject(http.Controller): - @http.route(['/project/rating/'], type='http', auth="public", website=True) + @http.route(['/project/rating'], type='http', auth="public", website=True) def index(self, **kw): projects = request.env['project.project'].sudo().search([('rating_status', '!=', 'no'), ('portal_show_rating', '=', True)]) values = {'projects': projects} diff --git a/addons/survey/controllers/main.py b/addons/survey/controllers/main.py index b9e3856d479..63a463e95a9 100644 --- a/addons/survey/controllers/main.py +++ b/addons/survey/controllers/main.py @@ -441,7 +441,7 @@ class Survey(http.Controller): # COMPLETED SURVEY ROUTES # ------------------------------------------------------------ - @http.route('/survey/print/', type='http', auth='public', website=True) + @http.route('/survey/print/', type='http', auth='public', website=True, sitemap=False) def survey_print(self, survey_token, review=False, answer_token=None, **post): '''Display an survey in printable view; if is set, it will grab the answers of the user_input_id that has .''' diff --git a/addons/test_website/controllers/main.py b/addons/test_website/controllers/main.py index 1fc9f8e54e6..6b4328287e0 100644 --- a/addons/test_website/controllers/main.py +++ b/addons/test_website/controllers/main.py @@ -12,7 +12,7 @@ from odoo.exceptions import UserError, ValidationError, AccessError, MissingErro class WebsiteTest(Home): - @http.route('/test_view', type='http', auth='public', website=True) + @http.route('/test_view', type='http', auth='public', website=True, sitemap=False) def test_view(self, **kwargs): return request.render('test_website.test_view') diff --git a/addons/test_website/data/test_website_data.xml b/addons/test_website/data/test_website_data.xml index 4327bf597f8..e970f69484e 100644 --- a/addons/test_website/data/test_website_data.xml +++ b/addons/test_website/data/test_website_data.xml @@ -70,6 +70,7 @@ True /test_page_view + Test View To Be t-called diff --git a/addons/website/controllers/main.py b/addons/website/controllers/main.py index 57e7aab7bbe..3cfd95fdce2 100644 --- a/addons/website/controllers/main.py +++ b/addons/website/controllers/main.py @@ -468,7 +468,7 @@ class WebsiteBinary(http.Controller): kw['unique'] = unique return Binary().content_image(**kw) - @http.route(['/favicon.ico'], type='http', auth='public', website=True) + @http.route(['/favicon.ico'], type='http', auth='public', website=True, sitemap=False) def favicon(self, **kw): # when opening a pdf in chrome, chrome tries to open the default favicon url return self.content_image(model='website', id=str(request.website.id), field='favicon', **kw) diff --git a/addons/website_crm/views/website_crm_templates.xml b/addons/website_crm/views/website_crm_templates.xml index 21186b437fc..a62eae17c89 100644 --- a/addons/website_crm/views/website_crm_templates.xml +++ b/addons/website_crm/views/website_crm_templates.xml @@ -51,11 +51,11 @@ - +