Successfully reported this slideshow.
Your SlideShare is downloading. ×

Tree View Decoration Awhat is Tree View Decoration Attributes Odoo 15ttributes odoo15.pptx

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Upcoming SlideShare
Odoo 15 Employee Referral
Odoo 15 Employee Referral
Loading in …3
×

Check these out next

1 of 14 Ad

Tree View Decoration Awhat is Tree View Decoration Attributes Odoo 15ttributes odoo15.pptx

Download to read offline

In Odoo sometimes we may need to differentiate records based on some factors. We have seen the features in some modules. Odoo tree views can take supplementary attributes to further customize their behaviour. decoration-{$name} allow changing the style of a row's text based on the corresponding record's attributes.

In Odoo sometimes we may need to differentiate records based on some factors. We have seen the features in some modules. Odoo tree views can take supplementary attributes to further customize their behaviour. decoration-{$name} allow changing the style of a row's text based on the corresponding record's attributes.

Advertisement
Advertisement

More Related Content

More from Celine George (20)

Recently uploaded (20)

Advertisement

Tree View Decoration Awhat is Tree View Decoration Attributes Odoo 15ttributes odoo15.pptx

  1. 1. Tree View Decoration Attributes Odoo 15 www.cybrosys.com
  2. 2. INTRODUCTION ❖ In Odoo sometimes we may need to differentiate records based on some factors. We have seen the feature in some modules, for instance, in the list view, the records are separated with different colors. ❖ 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. ❖ Syntax <tree decoration-type=”field==’value'”>
  3. 3. ❖ Different types of tree view decoration attributes are listed below:  decoration-danger  decoration-success  decoration-muted  decoration-primary  decoration-info  decoration-warning  decoration-bf  decoration-it
  4. 4. 1. decoration-danger - shows the row in LIGHT RED <tree decoration-danger="state == 'cancel'">
  5. 5. 2.decoration-success - shows the row in LIGHT GREEN <tree decoration-success="state == 'confirm'">
  6. 6. 3.decoration-muted – shows the row in LIGHT GRAY <tree decoration-muted="state == 'cancel'">
  7. 7. 4.decoration-primary – shows the row in LIGHT PURPLE <tree decoration-primary="name == 'Test'">
  8. 8. 5.decoration-info – shows the row in LIGHT BLUE <tree decoration-info="upper_name == 'TEST'">
  9. 9. 6.decoration-warning - shows the line in LIGHT BROWN <tree decoration-warning="state == 'pending'">
  10. 10. 7.decoration-bf - shows the line in BOLD <tree decoration-bf="state == 'confirm'">
  11. 11. 8.decoration-it - shows the line in ITALICS <tree decoration-it="state == 'pending'">
  12. 12. For More Details Check our company website for related blogs and Odoo book. Odoo 15 book Check our YouTube channel for functional and technical videos in Odoo. Tree View Decoration Attribute in Odoo 15
  13. 13. Thank You

×