Advanced Views - Tree View Decoration Attribute in Odoo 14

Odoo Tree Views can take supplementary attributes to further customize their behavior: decoration-{$name} allow changing the style of a row’s text based on the corresponding record’s attributes. In this video, we will discuss how you can add colors to the tree view based on conditions. As in the Odoo backend, we have a tree view for the listing of the records and a kanban view. The kanban view shows records as “cards”, midway between a list view and a non-editable form view. In the list view, we have a default data grid table with rows and columns. if we have a requirement where we need to highlight certain rows in the list view based on certain conditions in the current model. We highlight the rows using colors. The decorators that can be used are decoration-it – ITALICS decoration-bf – BOLD decoration-danger – LIGHT RED decoration-primary – LIGHT PURPLE decoration-info – LIGHT BLUE decoration-warning – LIGHT BROWN decoration-muted – LIGHT GRAY decoration-success – LIGHT GREEN

whatsapp
location

Calicut

Cybrosys Technologies Pvt. Ltd.
Neospace, Kinfra Techno Park
Kakkancherry, Calicut
Kerala, India - 673635

location

London

Cybrosys Limited
Alpha House,
100 Borough High Street, London,
SE1 1LB, United Kingdom

location

Kochi

Cybrosys Technologies Pvt. Ltd.
1st Floor, Thapasya Building,
Infopark, Kakkanad,
Kochi, India - 682030.

location

Bangalore

Cybrosys Techno Solutions
The Estate, 8th Floor,
Dickenson Road,
Bangalore, India - 560042

Send Us A Message