diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-03-01 16:14:41 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-03-01 16:14:41 +0100 |
| commit | eddefc9948b1a56bfc72e4c54fee09f8954331fd (patch) | |
| tree | a4e7ad831e22ca61f898a83a1e0e718c071b6511 /addons/website/controllers/main.py | |
| parent | b150ac3203a6b156335745a2ff81f7278a42f68b (diff) | |
| parent | 8c55e57c7ff2bd25df6e76608f77bab1dedd26cf (diff) | |
[MERGE] forward port branch 10.0 up to 8c55e57c7ff
Diffstat (limited to 'addons/website/controllers/main.py')
| -rw-r--r-- | addons/website/controllers/main.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/website/controllers/main.py b/addons/website/controllers/main.py index dcae38f7159..65cc369005c 100644 --- a/addons/website/controllers/main.py +++ b/addons/website/controllers/main.py @@ -191,9 +191,12 @@ class Website(Home): 'name': "/sitemap-%d.xml" % current_website.id, }) else: + # TODO: in master/saas-15, move current_website_id in template directly + pages_with_website = map(lambda p: "%d-%d" % (current_website.id, p), range(1, pages + 1)) + # Sitemaps must be split in several smaller files with a sitemap index content = View.render_template('website.sitemap_index_xml', { - 'pages': range(1, pages + 1), + 'pages': pages_with_website, 'url_root': request.httprequest.url_root, }) create_sitemap('/sitemap-%d.xml' % current_website.id, content) |
