Community mailing list archives
Re: Record in tree view with different colorsby
Elmatica AS, Luis Alberto Panozzo
Could you share the tree statement you generated?
On 19 February 2016 at 18:47, MOHAMED MAALEJ <email@example.com> wrote:
thanks for allthe problem is resolvedthe problem was with the operator '<' used for comparaison is not allowedwe use not(field>value) and it work very fineLe Vendredi 19 février 2016 17h51, Luis Panozzo <firstname.lastname@example.org> a écrit :
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">On 19 February 2016 at 16:37, Damien Crier <email@example.com> wrote: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.Hi,As Martin said, coloring full line (e.g. text) is supported by default in odoo.--On Fri, Feb 19, 2016 at 3:39 PM, MOHAMED MAALEJ <firstname.lastname@example.org> wrote:hello for allI 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 pleasethank in advance