Repository
OCA/website · module folder · Try on Runboat
Module version
1.0.0
Category
Website
Folder size
0.12 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/website
Last tracking update
2026-09-17 11:19:30
Authors
Odoo Community Association (OCA), Binhex
Maintainers
Odoo Community Association (OCA), Binhex
Committers
OCA-git-bot, Edilio Escalona Almira
Odoo dependencies
Python dependencies
geoip2
System dependencies
None
Required by
None
Description
This module lets website administrators exclude public website URLs from
`/sitemap.xml`.

The module only affects sitemap generation. It does not unpublish pages, change
access rights, or block direct access to the excluded URLs.

It also clears the cached sitemap when website pages are created, deleted, or
their URL changes, so sitemap URLs are refreshed in the next sitemap generation.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
res_config_settings_view_form website.exclude.sitemap.res.config.settings res.config.settings form Inherits website.res_config_settings_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (1)
  • sitemap_excluded_paths Text
    readonly=False related='website_id.sitemap_excluded_paths'
Public methods (1)
  • action_reload_sitemap(self)

New fields (1)
  • sitemap_excluded_paths Text
    default=SITEMAP_DEFAULT_EXCLUDED_PATHS_TEXT help='One path or pattern per line, comma, or semicolon. * matches inside one path segment, ** across segments, and a trailing / excludes a path and everything below it. Examples: /contactus, /solutions*, /blog/*/feed, /customers/, /jobs/**' string='Sitemap Exclusions'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)

New fields (0)

No new fields.

Public methods (3)
  • create(self, vals_list)
    @api.model_create_multi
  • unlink(self)
  • write(self, vals)