[FIX] project_issue: override _track_template
Properly override `_track_template` similarly to what is done for `project.task`, so the method can accept a recordset. Co-authored by: Nicolas Martinelli <nim@odoo.com> Closes #23466 opw-1823244
This commit is contained in:
committed by
Nicolas Martinelli
parent
18109edc6e
commit
671d54114f
@@ -204,11 +204,11 @@ class ProjectIssue(models.Model):
|
||||
|
||||
@api.multi
|
||||
def _track_template(self, tracking):
|
||||
self.ensure_one()
|
||||
res = super(ProjectIssue, self)._track_template(tracking)
|
||||
changes, dummy = tracking[self.id]
|
||||
if 'stage_id' in changes and self.stage_id.mail_template_id:
|
||||
res['stage_id'] = (self.stage_id.mail_template_id, {'composition_mode': 'mass_mail'})
|
||||
test_issue = self[0]
|
||||
changes, tracking_value_ids = tracking[test_issue.id]
|
||||
if 'stage_id' in changes and test_issue.stage_id.mail_template_id:
|
||||
res['stage_id'] = (test_issue.stage_id.mail_template_id, {'composition_mode': 'mass_mail'})
|
||||
return res
|
||||
|
||||
def _track_subtype(self, init_values):
|
||||
|
||||
Reference in New Issue
Block a user