Community mailing list archives

community@mail.odoo.com

Re: Record in tree view with different colors

by
Damien Crier
- 02/19/2016 10:31:26
Hi,

As Martin said, coloring full line (e.g. text) is supported by default in odoo.
If you want to change background.forground color of a record (line in tree view), you can have a look at this module (v8): https://github.com/OCA/web/tree/8.0/web_tree_dynamic_colored_field.


On Fri, Feb 19, 2016 at 3:39 PM, MOHAMED MAALEJ <maalej_info@yahoo.fr> wrote:
hello for all

I need to give differents colors for records in a tree view. the color is choose according a condition.
Exp : a tree view of product. those having quantity less than 10 will be in red and others in green.
in this case, when i use in the xml file  colors="red:qty<10" it ive error.

any help please

thank in advance

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Damien Crier

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
http://www.camptocamp.com