Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/katyukha/base_tags

Base tags implementation for Odoo
https://github.com/katyukha/base_tags

Last synced: 24 days ago
JSON representation

Base tags implementation for Odoo

Awesome Lists containing this project

README

        

# Project moved

See [crnd-inc/generic-addons](https://github.com/crnd-inc/generic-addons) for last version.

Project was moved there and renamed to `generic_tag`

There are versions for 9-12.

Supported last 2-3 versions.

# Generic tags (base_tags)

Base tags implementation for Odoo

Consists of set of modules to add tags to standard Odoo models.

## At this moment there are modules to add tags for models:

- account.invoice model
- product.product model

## Compatability:

- Odoo version 7.0: *works fine*
- Odoo version 8.0 and higher: *not tested*

## Usage

To add tags to your model You need to folow folowing simple steps:

1. Add ```base_tags``` module as dependency for your module

2. Use inherit from ```"res.tag.mixin"``` to get tags functionality to Your model, like:

```python
class Product(orm.Model):
_name = "product.product"
_inherit = ["product.product",
"res.tag.mixin"]
Product()
```
3. Add record to taggable models registry:

```xml

Product
product.product

```
4. Now You can use ```tag_ids``` field in Your views for Your model:

- search view:

```xml


```
- tree view:

```xml

```
- form view:

```xml

```

Pay attention on context field. This will allow to avoid tag form popup when adding tag from form field

## Future plans

- custom widget to show help/comment on tags mous over
- ability to show tags same in form view and in tree/list view
- make tags colored (any tag could have ovn color to fill backround in)