Odoo Help

0

how can change record color in hr.analytic.timesheet.tree view?

By
nasim
on 11/26/15, 12:59 AM 735 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

2
Parikshit
On 11/26/15, 1:25 AM

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 !!

yes. Thanks

nasim
on 11/26/15, 3:14 AM

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

Parikshit
on 11/26/15, 5:24 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 11/26/15, 12:59 AM
Seen: 735 times
Last updated: 12/1/15, 1:20 AM