Advanced Views - Tree View Decoration Attribute in Odoo 14 | List View | Odoo 14 Development

Subscribers:
28,000
Published on ● Video Link: https://www.youtube.com/watch?v=iHDnzSbKeSo



Duration: 24:22
2,048 views
9


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.

0:00 Introduction
1:44 Tree view of course
6:11 open the openacademy app to view the changes
10:11 Give the value as top and view the changes
17:20 Define model in the python file
19:45 Define separate order for the list view

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




Other Videos By Cybrosys Technologies


2021-03-08Odoo 14 Fiscal Localization - Italy | Odoo Accounting | Accounting in Italy
2021-03-08Odoo 14 Fiscal Localization Germany | Odoo Accounting Localization | German Accounting
2021-03-08Odoo 14 Fiscal Localization Spain | Odoo Accounting Localization | Spanish Accounting
2021-03-08How to update client interface 'on change' @api onchange?
2021-03-07Odoo 14 Expense Management | Odoo 14 Community Videos
2021-03-06Odoo 14 Inventory Management | Odoo Community | Odoo ERP Inventory Basics
2021-03-06Odoo 14 Recruitment Management | Odoo 14 Community
2021-03-06Multi-Language Support in Odoo 14 Website Community
2021-03-05Model Constraints Python Constraints | Odoo Development Tutorial
2021-03-05Model Constraints SQL Constraints | Odoo Development Tutorial
2021-03-05Advanced Views - Tree View Decoration Attribute in Odoo 14 | List View | Odoo 14 Development
2021-03-05Advanced Views - Calendar View in Odoo 14 | Odoo 14 Development Tutorial
2021-03-04How to Unbuild a Product in odoo Manufacturing | Odoo 14 Community
2021-03-04Subcontracting In Odoo 14 Manufacturing | Odoo Community | Odoo Manufacturing Module
2021-03-04Odoo 14 Full Accounting Kit Webinar | Odoo 14 Webinar
2021-03-03Display Products Price as Tax Included and Excluded Odoo | Odoo 14 Website Community
2021-03-03Odoo 14 POS Rescue Session | Odoo 14 Community
2021-03-03Batch Picking in Odoo14 Inventory Community
2021-03-03Odoo 14 Website | Odoo Community Edition | Odoo Website Basics
2021-03-03Odoo 14 Event Management | Odoo 14 Community
2021-03-02Maintenance Management in Odoo ERP Manufacturing | Odoo 14 Community



Tags:
odoo
odoo erp
cybrosys odoo
Advanced Views - Tree Views
Odoo 14 Development Tutorial
List View in Odoo 14
odoo advanced views
list view in odoo 14
odoo tree view deceorators
odoo list view decorators
odoo 14 tutorials
odoo 14 development
odoo button in tree view
odoo views
set color in tree view in odoo 14
attrs attribute in odoo
editable attribute in list view odoo
color tree view in odoo
give color in tree view