summaryrefslogtreecommitdiff
path: root/addons/mass_mailing/controllers/main.py
diff options
context:
space:
mode:
authorJulien Castiaux <juc@odoo.com>2019-07-09 07:52:25 +0000
committerJulien Castiaux <juc@odoo.com>2019-07-09 07:52:25 +0000
commitad4a618a82649a040c1a6d318e5ad62a90c0eb17 (patch)
treee0d8da1784215de5eacdc35cfc096589c1eb346a /addons/mass_mailing/controllers/main.py
parent1f627dcf576d91bb093b7229441323390af91449 (diff)
[FIX] mass_mailing: disable sitemap on unsubscribe route
Insall website and mass_mailing, go to the `/sitemap.xml` url, the `/unsubscribe_from_list` url is listed, it should not. opw-2033251 closes odoo/odoo#34677 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/mass_mailing/controllers/main.py')
-rw-r--r--addons/mass_mailing/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mass_mailing/controllers/main.py b/addons/mass_mailing/controllers/main.py
index b642033b35c..d7252b0ed1b 100644
--- a/addons/mass_mailing/controllers/main.py
+++ b/addons/mass_mailing/controllers/main.py
@@ -11,7 +11,7 @@ from odoo.tools import consteq
class MassMailController(http.Controller):
- @http.route(['/unsubscribe_from_list'], type='http', website=True, multilang=False, auth='public')
+ @http.route(['/unsubscribe_from_list'], type='http', website=True, multilang=False, auth='public', sitemap=False)
def unsubscribe_placeholder_link(self, **post):
"""Dummy route so placeholder is not prefixed by language, MUST have multilang=False"""
raise werkzeug.exceptions.NotFound()