Odoo Help


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

on 11/26/15, 12:59 AM 538 views


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



| 6 3 8
Ahmedabad, India

Working as an OpenERP/Odoo developer both experience in web and addons. you can contact me at:

E-mail : parikshitvaghasiya@gmail.com

Blog : parikshitvaghasiya.blogspot.in

Stackoverflow : http://stackoverflow.com/users/5089106/parikshit-vaghasiya

On 11/26/15, 1:25 AM


For this you can use this. :

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

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


Hope this will help you !!

yes. Thanks

on 11/26/15, 3:14 AM

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

on 11/26/15, 5:24 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

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.


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)


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