we would like to change the tree view record colour based on some condition for all module that's way we need solution through python function.example like in XML file
<tree string="Status" colors="red:shop=='single';green:shop=='married' ">
<field name="name"></field><field name="status"></field>
</tree>