TIP: You can type at any time to perform a new search.
Base Url
base_url · OCA/server-tools
- Repository
- OCA/server-tools · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- tools
- Folder size
- 0.06 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/server-tools
- Last tracking update
- 2026-09-25 23:16:44
- Authors
- Akretion, ACSONE SA/NV, Odoo Community Association (OCA)
- Maintainers
- Akretion, ACSONE SA/NV, Odoo Community Association (OCA)
- Committers
- Weblate, Florian Mounier, OCA-git-bot, oca-ci
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- System dependencies
- None
- Required by
- oca_search_engine
- Description
The aim of this module is to provide a generic mixin for building urls on records. The native odoo implementation of a record url is based on having an "id" in the url, this module provides an alternative way of doing it. Urls are generated and stored in an unique table (to ensure unicity). Redirections are also managed in case of url changes. This project was initial build for shopinvader as we need to have unique url for the connected webshop. But this concept can be reused in other cases and even replace the odoo url implementation.
Code Analysis ⓘ
Views touched (2)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
url_view_form |
url.url | form | New | |
url_view_tree |
url.url | list | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (2)
New fields (5)
-
count_urlIntegercompute='_compute_count_url' -
redirect_url_keyJsoncompute='_compute_url_key'string='Redirect Url Keys' -
url_idsOne2many → url.urlargs: 'url.url', 'res_id' -
url_keyCharcompute='_compute_url_key' -
url_need_refreshBooleancompute='_compute_url_need_refresh'readonly=Falsestore=True
-
open_url(self) -
unlink(self) -
write(self, vals)
New fields (9)
-
keyCharindex=Truerequired=True -
lang_idMany2one → res.langindex=Truerequired=Truestring='Lang' args: 'res.lang' -
manualBooleandefault=Truereadonly=True -
need_refreshBoolean -
redirectBooleanhelp='If tick this url is a redirection to the new url' -
referentialSelectiondefault='global'index=Truerequired=Trueselection=<expr> -
res_idMany2oneReferencehelp='ID of the target record in the database'index=Truemodel_field='res_model_field'readonly=Truestring='Record ID' -
res_modelSelectionindex=Truereadonly=Trueselection=<expr> -
res_model_fieldCharcompute='_compute_res_model_field'readonly=Truestore=Truestring='Model Name'
-
init(self)