Generate slug from record name for web urls.
For a detailed documentation have a look at https://www.odoo-wiki.org/url-slug.html
- 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)

This module is maintained by Mint System GmbH.
For support and more information, please visit our Website.