In odoo treeview we can colorize record lines depend on specific field. In this example i make each line green and red color based on field 'state' which is selection field ('confirm','reject'). this is also work in treeview of One2many.
Simple isn't ? Questions comment down below.
Simple isn't ? Questions comment down below.
The next question is: how to change color of for example decoration-danger to BLACK? for example in specific field only.
ReplyDeleteand how to add new decoration attribute?