Metadata-Version: 2.1
Name: odoo-addon-url_slug
Version: 18.0.1.0.0
Requires-Python: >=3.10
Requires-Dist: odoo==18.0.*
Summary: Generate slug from record name for web urls.
Home-page: https://www.mint-system.ch/
License: AGPL-3
Author: Mint System GmbH
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 18.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Description-Content-Type: text/x-rst

.. image:: https://img.shields.io/badge/licence-GPL--3-blue.svg
    :target: http://www.gnu.org/licenses/gpl-3.0-standalone.html
    :alt: 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:

.. code-block:: python
  
  class Note(models.Model):
      _name = "note.note"
      _inherit = ['url.slug.mixin']

* Optionally overwrite the compute slug method:

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

Maintainer
~~~~~~~~~~

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

This module is maintained by Mint System GmbH.

For support and more information, please visit `our Website <https://www.mint-system.ch>`__.
