Community mailing list archives

Re: Record in tree view with different colors

Elmatica AS, Luis Alberto Panozzo
- 02/19/2016 11:50:49
This works fine in my V8 installation (Supplier invoices)
<tree colors="blue:state == 'draft';black:state in ('proforma','proforma2','open');gray:state == 'cancel';red:state == 'waiting'" string="Invoice" default_order="id desc">

Luis Panozzo (Lp)
Technology Manager
Elmatica AS
Skype: luispanozzo

On 19 February 2016 at 16:37, Damien Crier <> wrote:

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):

On Fri, Feb 19, 2016 at 3:39 PM, MOHAMED MAALEJ <> 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

Post to:

Damien Crier

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex

Post to: