Community mailing list archives

community@mail.odoo.com

Re: Record in tree view with different colors

by
Martin Trigaux (mat)
- 02/19/2016 09:54:39
No need for a custom module this, it's supp.
Depending if you are in 8.0 or 9.0 the syntax is different.

https://www.odoo.com/documentation/8.0/reference/views.html#lists
https://www.odoo.com/documentation/8.0/howtos/backend.html#advanced-views

https://www.odoo.com/documentation/9.0/reference/views.html#lists
https://www.odoo.com/documentation/9.0/howtos/backend.html#advanced-views

Check the error message but it's maybe
- the field you are using for the condition is not present in the tree view
- the condition is not escaped for XML ('<' instead of ' check this addon
> https://github.com/OCA/web/tree/8.0/web_tree_dynamic_colored_field
>
> On Fri, Feb 19, 2016 at 2:39 PM, MOHAMED MAALEJ <maalej_info@yahoo.fr
>
>     I need to give differents colors for records in a tree view. the
>     color is choose according a condition.

-- 
Martin Trigaux
Odoo
https://odoo.com
https://github.com/mart-e