Skip to content

Commit

Permalink
Revert "[FIX] project: follow stage change"
Browse files Browse the repository at this point in the history
This reverts commit 5fa4f4c.

Explanation: odoo@5fa4f4cc31#commitcomment-27551833
  • Loading branch information
nle-odoo committed Feb 14, 2018
1 parent 5fa4f4c commit 2684436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/project/models/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ def _track_subtype(self, init_values):
return 'project.mt_task_ready'
elif 'user_id' in init_values and self.user_id: # assigned -> new
return 'project.mt_task_new'
elif self.env.context.get('mail_create_nolog'): # task created
elif 'stage_id' in init_values and self.stage_id and self.stage_id.sequence <= 1: # start stage -> new
return 'project.mt_task_new'
elif 'stage_id' in init_values:
return 'project.mt_task_stage'
Expand Down

0 comments on commit 2684436

Please sign in to comment.