Skip to content

Commit ba87706

Browse files
committed
[BOT] post-merge updates
1 parent 4f5e875 commit ba87706

File tree

5 files changed

+72
-72
lines changed

5 files changed

+72
-72
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ addon | version | maintainers | summary
6767
[web_timeline](web_timeline/) | 16.0.1.1.7 | [![tarteo](https://github.com/tarteo.png?size=30px)](https://github.com/tarteo) | Interactive visualization chart to show events in time
6868
[web_touchscreen](web_touchscreen/) | 16.0.1.0.1 | [![yajo](https://github.com/yajo.png?size=30px)](https://github.com/yajo) [![rafaelbn](https://github.com/rafaelbn.png?size=30px)](https://github.com/rafaelbn) | UX improvements for touch screens
6969
[web_tree_duplicate](web_tree_duplicate/) | 16.0.1.0.1 | [![tarteo](https://github.com/tarteo.png?size=30px)](https://github.com/tarteo) | Duplicate records directly from the tree view.
70+
[web_tree_dynamic_colored_field](web_tree_dynamic_colored_field/) | 16.0.1.0.0 | | Allows you to dynamically color fields on tree views
7071
[web_tree_many2one_clickable](web_tree_many2one_clickable/) | 16.0.1.0.0 | | Open the linked resource when clicking on their name
7172
[web_widget_bokeh_chart](web_widget_bokeh_chart/) | 16.0.1.1.0 | [![LoisRForgeFlow](https://github.com/LoisRForgeFlow.png?size=30px)](https://github.com/LoisRForgeFlow) [![ChrisOForgeFlow](https://github.com/ChrisOForgeFlow.png?size=30px)](https://github.com/ChrisOForgeFlow) | This widget allows to display charts using Bokeh library.
7273
[web_widget_char_size](web_widget_char_size/) | 16.0.1.0.0 | | Add size option to Char widget

setup/_metapackage/VERSION.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.0.20241216.0
1+
16.0.20250225.0

setup/_metapackage/setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
'odoo-addon-web_timeline>=16.0dev,<16.1dev',
5555
'odoo-addon-web_touchscreen>=16.0dev,<16.1dev',
5656
'odoo-addon-web_tree_duplicate>=16.0dev,<16.1dev',
57+
'odoo-addon-web_tree_dynamic_colored_field>=16.0dev,<16.1dev',
5758
'odoo-addon-web_tree_many2one_clickable>=16.0dev,<16.1dev',
5859
'odoo-addon-web_widget_bokeh_chart>=16.0dev,<16.1dev',
5960
'odoo-addon-web_widget_char_size>=16.0dev,<16.1dev',

web_tree_dynamic_colored_field/README.rst

+65-66
Original file line numberDiff line numberDiff line change
@@ -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:6521bdb39984b1f0b648e2ab5e2798ab30f3b70c504669ef51a772bcb92663da
10+
!! source digest: sha256:3ada4e5c3475a760e028bcac0d81857e0dfd6d603cbd5a19a2c992cf21fbac2c
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.
3434
Features
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
4747
Usage
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
124124
the options doesn't follow the JSON format, the options string will be
@@ -127,14 +127,14 @@ evaluated using py.eval()**
127127
Known 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

139139
Bug Tracker
140140
===========
@@ -158,22 +158,21 @@ Authors
158158
Contributors
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
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>
169168

170169
Other credits
171170
-------------
172171

173172
The development of this module has been financially supported by:
174173

175-
- Camptocamp
176-
- Versada
174+
- Camptocamp
175+
- Versada
177176

178177
Maintainers
179178
-----------

web_tree_dynamic_colored_field/static/description/index.html

+4-5
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ <h1 class="title">Colorize field in tree views</h1>
367367
!! This file is generated by oca-gen-addon-readme !!
368368
!! changes will be overwritten. !!
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370-
!! source digest: sha256:6521bdb39984b1f0b648e2ab5e2798ab30f3b70c504669ef51a772bcb92663da
370+
!! source digest: sha256:3ada4e5c3475a760e028bcac0d81857e0dfd6d603cbd5a19a2c992cf21fbac2c
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372372
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/web/tree/16.0/web_tree_dynamic_colored_field"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_tree_dynamic_colored_field"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/web&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>This module aims to add support for dynamically coloring fields in tree
@@ -377,8 +377,8 @@ <h1>Features</h1>
377377
<ul class="simple">
378378
<li>Add attribute <tt class="docutils literal">bg_color</tt> on field’s <tt class="docutils literal">options</tt> to color background
379379
of a cell in tree view</li>
380-
<li>Add attribute <tt class="docutils literal">fg_color</tt> on field’s <tt class="docutils literal">options</tt> to change text
381-
color of a cell in tree view</li>
380+
<li>Add attribute <tt class="docutils literal">fg_color</tt> on field’s <tt class="docutils literal">options</tt> to change text color
381+
of a cell in tree view</li>
382382
</ul>
383383
<p><strong>Table of contents</strong></p>
384384
<div class="contents local topic" id="contents">
@@ -506,8 +506,7 @@ <h1>Contributors</h1>
506506
<li>Artem Kostyuk &lt;<a class="reference external" href="mailto:a.kostyuk&#64;mobilunity.com">a.kostyuk&#64;mobilunity.com</a>&gt;</li>
507507
<li>Guewen Baconnier &lt;<a class="reference external" href="mailto:guewen.baconnier&#64;camptocamp.com">guewen.baconnier&#64;camptocamp.com</a>&gt;</li>
508508
<li>Phuc Tran Thanh &lt;<a class="reference external" href="mailto:phuc&#64;trobz.com">phuc&#64;trobz.com</a>&gt;</li>
509-
<li>Sylvain LE GAL
510-
&lt;<a class="reference external" href="https://twitter.com/legalsylvain">https://twitter.com/legalsylvain</a>&gt;</li>
509+
<li>Sylvain LE GAL &lt;<a class="reference external" href="https://twitter.com/legalsylvain">https://twitter.com/legalsylvain</a>&gt;</li>
511510
<li>Jurgis Pralgauskis &lt;<a class="reference external" href="mailto:jurgis&#64;versada.eu">jurgis&#64;versada.eu</a>&gt;</li>
512511
</ul>
513512
</div>

0 commit comments

Comments
 (0)