@@ -7,7 +7,7 @@ Colorize field in tree views
77 !! This file is generated by oca-gen-addon-readme !!
88 !! changes will be overwritten. !!
99 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10- !! source digest: sha256:f6356258dae95cac6cf463ac8565680182dc73987f8d9f528ffab3567773e0bc
10+ !! source digest: sha256:9421f600f808456315bd58fa3ad58e5d8790f99fb1f0809e81ce7bb0ef0774b1
1111 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313.. |badge1 | image :: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -34,10 +34,10 @@ view according to data in the record.
3434Features
3535--------
3636
37- - Add attribute ``bg_color `` on field's ``options `` to color background
38- of a cell in tree view
39- - Add attribute ``fg_color `` on field's ``options `` to change text
40- color of a cell in tree view
37+ - Add attribute ``bg_color `` on field's ``options `` to color background
38+ of a cell in tree view
39+ - Add attribute ``fg_color `` on field's ``options `` to change text color
40+ of a cell in tree view
4141
4242**Table of contents **
4343
@@ -47,44 +47,44 @@ Features
4747Usage
4848=====
4949
50- - In the tree view declaration, put
51- ``options='{"bg_color": "red: customer==True"} `` attribute in the
52- ``field `` tag:
50+ - In the tree view declaration, put
51+ ``options='{"bg_color": "red: customer==True"} `` attribute in the
52+ ``field `` tag:
5353
54- ::
54+ ::
5555
56- ...
57- <field name="arch" type="xml">
58- <tree string="View name">
59- ...
60- <field name="name" options='{"bg_color": "red: customer == True"}'/>
61- ...
62- </tree>
63- </field>
64- ...
56+ ...
57+ <field name="arch" type="xml">
58+ <tree string="View name">
59+ ...
60+ <field name="name" options='{"bg_color": "red: customer == True"}'/>
61+ ...
62+ </tree>
63+ </field>
64+ ...
6565
66- With this example, column which renders 'name' field will have its **background** colored in red on customer records.
66+ With this example, column which renders 'name' field will have its **background** colored in red on customer records.
6767
68- - In the tree view declaration, put
69- ``options='{"fg_color": "white:customer == True"}' `` attribute in the
70- ``field `` tag:
68+ - In the tree view declaration, put
69+ ``options='{"fg_color": "white:customer == True"}' `` attribute in the
70+ ``field `` tag:
7171
72- ::
72+ ::
7373
74- ...
75- <field name="arch" type="xml">
76- <tree string="View name">
77- ...
78- <field name="name" options='{"fg_color": "white:customer == True"}'/>
79- ...
80- </tree>
81- </field>
82- ...
74+ ...
75+ <field name="arch" type="xml">
76+ <tree string="View name">
77+ ...
78+ <field name="name" options='{"fg_color": "white:customer == True"}'/>
79+ ...
80+ </tree>
81+ </field>
82+ ...
8383
84- With this example, column which renders 'name' field will have its **text** colored in white on customer records.
84+ With this example, column which renders 'name' field will have its **text** colored in white on customer records.
8585
86- - If you want to use more than one color, you can split the attributes
87- using ';':
86+ - If you want to use more than one color, you can split the attributes
87+ using ';':
8888
8989::
9090
@@ -104,21 +104,21 @@ Example:
104104 </field >
105105 ...
106106
107- - Can use strings too... In the tree view declaration, put
108- ``options="{'fg_color': 'green:customer_state == \'success\''}" ``
109- attribute in the ``field `` tag:
107+ - Can use strings too... In the tree view declaration, put
108+ ``options="{'fg_color': 'green:customer_state == \'success\''}" ``
109+ attribute in the ``field `` tag:
110110
111- ::
111+ ::
112112
113- ...
114- <field name="arch" type="xml">
115- <tree string="View name">
116- ...
117- <field name="name" options="{'fg_color': 'green:customer_state == \'success\''}"/>
118- ...
119- </tree>
120- </field>
121- ...
113+ ...
114+ <field name="arch" type="xml">
115+ <tree string="View name">
116+ ...
117+ <field name="name" options="{'fg_color': 'green:customer_state == \'success\''}"/>
118+ ...
119+ </tree>
120+ </field>
121+ ...
122122
123123**Note that you can use single or normal quotes. If the declaration of
124124the options doesn't follow the JSON format, the options string will be
@@ -127,14 +127,14 @@ evaluated using py.eval()**
127127Known issues / Roadmap
128128======================
129129
130- - Before version 13.0, this module had a feature allowing to change the
131- color of a line depending on a field, using a ``colors `` attribute
132- with the name of the field on the ``<tree> `` element. Since 13.0, the
133- ``colors `` attribute is no longer in the RelaxNG schema of the tree
134- view, so we can't use it anymore. This feature has then been dropped,
135- but could be reimplement in another way.
136- - Since version 17.0 coloring is written into ``style `` attribute of
137- (td) element
130+ - Before version 13.0, this module had a feature allowing to change the
131+ color of a line depending on a field, using a ``colors `` attribute
132+ with the name of the field on the ``<tree> `` element. Since 13.0, the
133+ ``colors `` attribute is no longer in the RelaxNG schema of the tree
134+ view, so we can't use it anymore. This feature has then been dropped,
135+ but could be reimplement in another way.
136+ - Since version 17.0 coloring is written into ``style `` attribute of
137+ (td) element
138138
139139Bug Tracker
140140===========
@@ -158,21 +158,21 @@ Authors
158158Contributors
159159------------
160160
161- - Damien Crier <damien.crier@camptocamp.com>
162- - Holger Brunn <hbrunn@therp.nl>
163- - Artem Kostyuk <a.kostyuk@mobilunity.com>
164- - Guewen Baconnier <guewen.baconnier@camptocamp.com>
165- - Phuc Tran Thanh <phuc@trobz.com>
166- - Sylvain LE GAL <https://twitter.com/legalsylvain>
167- - Jurgis Pralgauskis <jurgis@versada.eu>
161+ - Damien Crier <damien.crier@camptocamp.com>
162+ - Holger Brunn <hbrunn@therp.nl>
163+ - Artem Kostyuk <a.kostyuk@mobilunity.com>
164+ - Guewen Baconnier <guewen.baconnier@camptocamp.com>
165+ - Phuc Tran Thanh <phuc@trobz.com>
166+ - Sylvain LE GAL <https://twitter.com/legalsylvain>
167+ - Jurgis Pralgauskis <jurgis@versada.eu>
168168
169169Other credits
170170-------------
171171
172172The development of this module has been financially supported by:
173173
174- - Camptocamp
175- - Versada
174+ - Camptocamp
175+ - Versada
176176
177177Maintainers
178178-----------
0 commit comments