Odoo Help


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.


Trigger to change color of Task when deadline is changed

Robert Klüsener
on 9/6/13, 9:40 AM 2,253 views

I created an automated action that changes the color of a task to red when the task is overdue using the time trigger. Problem is when I change the deadline after the color of the task is changed, the task still is red.

How can I create an automated action that changes the color of a task to white when the deadline is changed? Which trigger can I use for that?


Andreas Brueckl

--Andreas Brueckl--
| 7 8 7
Vienna, Austria
--Andreas Brueckl--
OpenERP Consulting and Development
Andreas Brueckl
On 9/18/13, 12:53 PM

You can use an additional Automated Action:

  • Create a new Filter with domain [('date_deadline','>',time.strftime('%Y-%m-%d'))]
  • Put this filter into field After Update Filter
  • The create and assign a new Server action which resets the deadline

You can solve this also by using only one Server action where you check the deadline and set the color accordingly.

Thank you for the answer Andreas. I did go for the second approach and created a server action which changes the color according to the deadline.

Feuerwear GmbH & Co. KG, Robert Klüsener
on 9/19/13, 2:34 PM

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

2 follower(s)


Asked: 9/6/13, 9:40 AM
Seen: 2253 times
Last updated: 3/16/15, 8:10 AM