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.