Browse Source

web_tree_dynamic_colored_field: correct options examples in readme

pull/1223/head
Guewen Baconnier 6 years ago
committed by mreficent
parent
commit
461a37ade6
  1. 9
      web_tree_dynamic_colored_field/README.rst
  2. 2
      web_tree_dynamic_colored_field/__manifest__.py

9
web_tree_dynamic_colored_field/README.rst

@ -25,13 +25,13 @@ Features
Usage
=====
* In the tree view declaration, put ``options='"bg_color": "red: customer==True"`` attribute in the ``field`` tag::
* In the tree view declaration, put ``options='{"bg_color": "red: customer==True"}`` attribute in the ``field`` tag::
...
<field name="arch" type="xml">
<tree string="View name">
...
<field name="name" options='"bg_color": "red: customer == True"'/>
<field name="name" options='{"bg_color": "red: customer == True"}'/>
...
</tree>
</field>
@ -39,13 +39,13 @@ Usage
With this example, column which renders 'name' field will have its background colored in red.
* In the tree view declaration, put ``options='"fg_color": "white:customer == True"'`` attribute in the ``field`` tag::
* In the tree view declaration, put ``options='{"fg_color": "white:customer == True"}'`` attribute in the ``field`` tag::
...
<field name="arch" type="xml">
<tree string="View name">
...
<field name="name" 'options="fg_color": "white:customer == True"'/>
<field name="name" options='{"fg_color": "white:customer == True"}'/>
...
</tree>
</field>
@ -90,6 +90,7 @@ Contributors
* Damien Crier <damien.crier@camptocamp.com>
* Holger Brunn <hbrunn@therp.nl>
* Artem Kostyuk <a.kostyuk@mobilunity.com>
* Guewen Baconnier <guewen.baconnier@camptocamp.com>
Maintainer
----------

2
web_tree_dynamic_colored_field/__manifest__.py

@ -4,7 +4,7 @@
'name': 'Colorize field in tree views',
'summary': 'Allows you to dynamically color fields on tree views',
'category': 'Hidden/Dependency',
'version': '11.0.1.0.0',
'version': '11.0.1.0.1',
'depends': ['web'],
'author': "Camptocamp, Therp BV, Odoo Community Association (OCA)",
'license': 'AGPL-3',

Loading…
Cancel
Save