Odoo Help

3

Trigger to change color of Task when deadline is changed

By
Robert Klüsener
on 9/6/13, 9:40 AM 2,718 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?

2

Andreas Brueckl

--Andreas Brueckl--
5161
| 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

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

2 follower(s)

Stats

Asked: 9/6/13, 9:40 AM
Seen: 2718 times
Last updated: 1/18/17, 4:51 AM