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.


Odoo 8 - Trigger something when task stage is changing

Claudio Marinozzi
on 3/23/15, 7:30 AM 559 views


first thank you for your time and your help.

I created some Task Stages (stage1, stage2, stage3), created a project, associated stages to the project. Then created 2 tasks with default stage stage1.

When the user changes the task from stage1 to stage2 I need to check if all others tasks are in stage2 too and in case do something... how can I do it? It doesn't appear to me to be a workflow.

Claudio Marinozzi
On 3/23/15, 11:20 AM

I resolved overriding the 'project.task' write method

class task(models.Model):

     _inherit = 'project.task'


    def write(self, values, context=None):

        result = super(task, self).write(values)

        if 'stage_id' in values:

            #do checks here

Is this the best and most elegant solution?

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: 3/23/15, 7:30 AM
Seen: 559 times
Last updated: 3/23/15, 11:21 AM