Health
45/100
poor
-
Security22/251 minor finding
-
Activity0/25Last human commit 90 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.6 MB
Module directory on disk
Code analysis
7 migration notes
3 models
6 views
0 HTTP endpoints
Migration considerations
Website— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceWebsiteSeoRedirection— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceWebsiteSeoRedirection— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (4 methods) migration-api-multi-one · sourcewebsite_seo_redirection_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
assets_editor |
assets_editor | ir.ui.view | qweb | Inherits website.assets_editor |
assets_frontend_demo |
assets_frontend_demo | ir.ui.view | qweb | Inherits website.assets_frontend |
sample_page |
sample_page | ir.ui.view | qweb | New |
website_seo_redirection_form_view |
Website SEO Redirection Form | website.seo.redirection | form | New |
website_seo_redirection_search_view |
Website SEO Redirection Search | website.seo.redirection | search | New |
website_seo_redirection_tree_view |
Website SEO Redirection Tree | website.seo.redirection | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (1)-
enumerate_pages(self, query_string=None)@api.multiShow redirected URLs in search results.
New fields (3)
-
destinationCharhelp='Path where the controller will be found now.'index=Truerequired=Truestring='Destination URL' -
originCharhelp='Path where the original controller was found.'index=Truerequired=Truestring='Original URL' -
relocate_controllerBooleandefault=Truehelp='If you relocate the controller, the same page that was found in the original URL will be now in the destination. Otherwise, this will simply make requests be redirected, but a new controller should be available in the destination URL if you do not want a 404 error.'
-
find_origin(self, redirected_path=None)@api.modelFinds the original path for :param:`redirected_path`. :param str redirected_path: Destination path to get to a controller. :raise NoOriginError: When no original URL is found, or the found URL is not marked with :attr:`relocate_controller`. :return str: Returns the original path (e.g. ``/page/example``) if :attr:`redirected_path` (e.g. ``/example``) is found among the SEO redirections, or :attr:`redirected_path` itself otherwise. -
redirect_auto(self, path=None, code=301, website=None, rerouting=None)@api.modelReturn a redirection for the SEO path or fail. :param str path: Path that will be searched among the SEO redirections. :param int code: HTTP redirection code. :param website odoo.models.Model: Current website object. Default: ``request.website``. :param list rerouting: List of reroutings performed. It defaults to ``request.rerouting``. :raise NoRedirectionError: If no redirection target is found. This allows you to continue the normal behavior in your controller. :return werkzeug.wrappers.Response: Redirection to the SEO version of the URL. -
smart_add(self, origin, destination)@api.modelAdd or update redirection only if needed. :param str origin: The original URL. :param str destination: The new redirected URL.
Loading…
Loading…