Skip to main content

Generate slug from record name for web urls.

Project description

License: GPL-3

Url Slug

Generate slug from record name for web urls.

For a detailed documentation have a look at https://www.odoo-wiki.org/url-slug.html

Configuration

  • Inherit the slug mixin in your module:

class Note(models.Model):
    _name = "note.note"
    _inherit = ['url.slug.mixin']
  • Optionally overwrite the compute slug method:

@api.depends("title")
def _compute_slug(self):
    for record in self:
        record.slug = slugify(record.title)

Maintainer

https://raw.githubusercontent.com/Mint-System/Wiki/main/attachments/mint-system-logo.png

This module is maintained by Mint System GmbH.

For support and more information, please visit our Website.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odoo_addon_url_slug-18.0.1.0.0-py3-none-any.whl (410.8 kB view details)

Uploaded Python 3

File details

Details for the file odoo_addon_url_slug-18.0.1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_url_slug-18.0.1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3dffb87cc14067b6b68753fabd2f7bdcaf75029b68f897c6a0c5a4ccf870965e
MD5 0a98777a32452e82b02a6cf81e2d3644
BLAKE2b-256 da15f72d7ee71088961ae2b228efffb7468fc5d7aeb639c4610a2df8985b984d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page