Odoo Help

Welcome!

This community 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.

0

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

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

--Parikshit--
939
| 6 3 8
Ahmedabad, India
--Parikshit--

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

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

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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