Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/katyukha/base_tags
- Owner: katyukha
- Created: 2014-07-15T12:57:30.000Z (over 10 years ago)
- Default Branch: 7.0
- Last Pushed: 2019-02-12T12:49:42.000Z (over 5 years ago)
- Last Synced: 2023-03-12T08:38:12.826Z (over 1 year ago)
- Language: Python
- Homepage: https://github.com/crnd-inc/generic-addons
- Size: 49.8 KB
- Stars: 2
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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*
## UsageTo 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)