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/master/assets/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-16.0.1.0.0-py3-none-any.whl (421.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for odoo_addon_url_slug-16.0.1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 21253a84a84c6d034fdcf353a3bbd879aae1aa83a071786816fbda05ebbef6e3
MD5 63e0cf247e565693bd8fe254eaea9e44
BLAKE2b-256 97546cd72393df26c08bfc0079efd00b5476cf0201effbab44653b210c8f1189

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