Skip to content

Commit abec25b

Browse files
committed
[IMP] project: fixup..
- Prevent sending emails when the task template is moved to another stage.
1 parent da7bc43 commit abec25b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/project/models/project_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1533,7 +1533,7 @@ def _message_auto_subscribe_followers(self, updated_values, default_subtype_ids)
15331533
def _track_template(self, changes):
15341534
res = super()._track_template(changes)
15351535
test_task = self[0]
1536-
if 'stage_id' in changes and test_task.stage_id.mail_template_id:
1536+
if 'stage_id' in changes and test_task.stage_id.mail_template_id and not test_task.is_template:
15371537
res['stage_id'] = (test_task.stage_id.mail_template_id, {
15381538
'auto_delete_keep_log': False,
15391539
'subtype_id': self.env['ir.model.data']._xmlid_to_res_id('mail.mt_note'),

0 commit comments

Comments
 (0)