Skip to Content
Menu
This question has been flagged
1 Reply
2524 Views

Hi

I want in tree view, in hr.analytic.timesheet.tree change color of each record that 'amount' filed is for example 'amount > 8'

but I don't know in which format can I define it?


<?xml version="1.0"?&gt;&lt;tree colors="red:amount ? ;" string="Timesheet Lines" editable="bottom">


Thanks for your help

Avatar
Discard
Best Answer

Hello,

For this you can use this. :

<xpath expr="//tree[@string='Timesheet Activities']" position="attributes">

    <attribute name="colors">red:amount > 8;</attribute>

</xpath>

Hope this will help you !!

Avatar
Discard
Author

yes. Thanks

If its helpful to you Please up the answer. Thanks.