Tree View Decoration Attribute in odoo 13
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.
Get the module from our repository: https://github.com/CybroOdoo/openacademy
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
#odoodevelopment #odootreeview #odoo13
For More Videos Subscribe to our YouTube channel.
Related Videos:
Configure Odoo 14 Project on Pycharm Ubuntu: https://www.youtube.com/watch?v=UGg1j5RCXKk&t=5s
Building a Module in Odoo 14: https://www.youtube.com/watch?v=wwIniIlIrAc
Composition of a module in Odoo 14: https://www.youtube.com/watch?v=8_M96X4O6XI
Module Structure in Odoo 14: https://www.youtube.com/watch?v=1F0veP4EJ2Q&t=160s
Empty Module Structure Scaffold in Odoo 14: https://www.youtube.com/watch?v=fY-QQXT2clw
Visit our company website: https://www.cybrosys.com/
Connect with us:
Facebook: http://ow.ly/Ty0Q30lc5TU
twitter: http://ow.ly/s5cV30lc5Vc
LinkedIn: http://ow.ly/GJfg30lc5WT
Pinterest: http://bit.ly/2I2b5N0
Other Videos By Cybrosys Technologies
2019-12-12 | Odoo 13 Features - Flexibility in Components Consumption |
2019-12-12 | Credit Notes in Odoo13 |
2019-12-11 | How to Set Up Shipping Methods In Odoo 13? |
2019-12-10 | Advanced Views - Search View in Odoo 13 |
2019-12-09 | Advanced Views - Calendar View in Odoo 13 |
2019-12-09 | Operation Types In Odoo 13 |
2019-12-07 | Cash Rounding in Odoo 13 |
2019-12-06 | Delivery Packages In Odoo 13 |
2019-12-06 | Inventory Valuation in odoo 13 |
2019-12-05 | Sales Pricelist In Odoo 13 |
2019-12-05 | Tree View Decoration Attribute in odoo 13 |
2019-12-02 | Odoo 13 Inventory Management |
2019-11-29 | Model Constraints - SQL Constraints in Odoo |
2019-11-28 | Model Constraints - Python Constraints in Odoo |
2019-11-28 | Onchange mechanism - @api.onchange in Odoo |
2019-11-28 | Putaway Rule in Odoo 13 |
2019-11-27 | How to assign owner for products in odoo 13? |
2019-11-27 | Follow up on invoices in odoo13 |
2019-11-27 | Fiscal Positions And Tax Mapping In Odoo 13 |
2019-11-27 | How to configure expiration date on product in odoo 13? |
2019-11-27 | Odoo Paytm Payment Gateway Integration |