@@ -7,7 +7,7 @@ Colorize field in tree views
7
7
!! This file is generated by oca-gen-addon-readme !!
8
8
!! changes will be overwritten. !!
9
9
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:6521bdb39984b1f0b648e2ab5e2798ab30f3b70c504669ef51a772bcb92663da
10
+ !! source digest: sha256:3ada4e5c3475a760e028bcac0d81857e0dfd6d603cbd5a19a2c992cf21fbac2c
11
11
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
13
13
.. |badge1 | image :: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -34,10 +34,10 @@ view according to data in the record.
34
34
Features
35
35
--------
36
36
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
41
41
42
42
**Table of contents **
43
43
@@ -47,44 +47,44 @@ Features
47
47
Usage
48
48
=====
49
49
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:
53
53
54
- ::
54
+ ::
55
55
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
+ ...
65
65
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.
67
67
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:
71
71
72
- ::
72
+ ::
73
73
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
+ ...
83
83
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.
85
85
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 ';':
88
88
89
89
::
90
90
@@ -104,21 +104,21 @@ Example:
104
104
</field >
105
105
...
106
106
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:
110
110
111
- ::
111
+ ::
112
112
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
+ ...
122
122
123
123
**Note that you can use single or normal quotes. If the declaration of
124
124
the options doesn't follow the JSON format, the options string will be
@@ -127,14 +127,14 @@ evaluated using py.eval()**
127
127
Known issues / Roadmap
128
128
======================
129
129
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
138
138
139
139
Bug Tracker
140
140
===========
@@ -158,22 +158,21 @@ Authors
158
158
Contributors
159
159
------------
160
160
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
167
- <`https://twitter.com/legalsylvain <https://twitter.com/legalsylvain >`__>
168
- - 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>
169
168
170
169
Other credits
171
170
-------------
172
171
173
172
The development of this module has been financially supported by:
174
173
175
- - Camptocamp
176
- - Versada
174
+ - Camptocamp
175
+ - Versada
177
176
178
177
Maintainers
179
178
-----------
0 commit comments