v 13.0 Third Party 189
Download for v 13.0 Deploy on Odoo.sh
Lines of code 691
Technical Name generic_tag
LicenseLGPL-3
Websitehttps://crnd.pro
Also available in version v 9.0 v 12.0 v 11.0 v 10.0
You bought this module and need support? Click here!
Lines of code 691
Technical Name generic_tag
LicenseLGPL-3
Websitehttps://crnd.pro
Also available in version v 9.0 v 12.0 v 11.0 v 10.0

Generic Tag

pipeline-pass License: LGPL-3 docs CR&D GitHub


Generic Tag is a module developed by the Center of Research & Development company.

It allows you to create and categorize generic tags (keywords).

With these tags in other applications, you can use the logic associated with them (for example, search and filter objects by tags).

Integration with other modules is realized with the help of additional modules.

Main Features of the Generic Tag Module:

  • Customize your own categories of tags.
  • Create and set up your unique (or completely generic) tags.
  • Associate your products, documents, contacts, etc. with created tags.
  • Use your tags!

Usage

To add tags to your model do the folowing simple steps:

  1. Add generic_tag module as dependency for your addon.
  2. Use inherit from "res.tag.mixin" to get tags functionality to your model, like:
        class Product(models.Model):
    	_name = "product.product"
    	_inherit = [
    	    "product.product",
                "generic.tag.mixin",
            ]
    
  3. Add record to taggable models registry:
        <record model="generic.tag.model" id="generic_tag_model_product_product">
    	<field name="res_model_id" ref="product.model_product_product"/>
        </record>
    
  4. Now you can use tag_ids field in your views for your model:
    • search view:
          <field name="tag_ids"/>
          <field name="search_tag_id"/> <!-- For direct searching (items that contain selected tag)-->
          <field name="search_no_tag_id"/> <!-- For inverse searching (items that do not contain selected tag)-->
      

      See search_tag_id and search_no_tag_id fields. These fields add autocompletition on searching by specific tag. search_tag_id allows to search for records that contain selected tag. search_no_tag_id allows to search for records that have no selected tag.

    • tree view:
          <field name="tag_ids"
      	   widget="many2many_tags"
      	   placeholder="Tags..."
      	   options="{'color_field': 'color'}"/>
      
    • form view:
          <field name="tag_ids"
      	   widget="many2many_tags"
      	   placeholder="Tags..."
      	   context="{'default_model': 'product.product'}"
      	   options="{'color_field': 'color'}"/>
      

      Pay attention on context field. This will automatically select correct model on tag creation.


Read the Generic Tag module guide for more information.

The Generic Condition module is part of the Bureaucrat ITSM project. You can try it by the references below.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported.


Launch your own ITSM system in 60 seconds:

Create your own Bureaucrat ITSM database yodoo.systems

Maintainer

CR&D

Our web site: https://crnd.pro

This module is maintained by the Center of Research & Development company.

We can provide you further Odoo Support, Odoo implementation, Odoo customization, Odoo 3rd Party development and integration software, consulting services. Our main goal is to provide the best quality product for you.

For any questions contact us.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.