Skip to content

Commit

Permalink
Merge pull request #37 from Domatix/13.0-email_notification
Browse files Browse the repository at this point in the history
[UPD] helpdesk_mgmt: the assignment email notification now will displ…
  • Loading branch information
cristina-domatix authored Jul 30, 2020
2 parents 5c4875f + b7d6c5b commit ba0860b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion helpdesk_mgmt/models/helpdesk_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ def _read_group_stage_ids(self, stages, domain, order):
)

def send_user_mail(self):
self.env.ref("helpdesk_mgmt.assignment_email_template").send_mail(self.id)
template = self.env.ref("helpdesk_mgmt.assignment_email_template")
self.message_post_with_template(
template.id, composition_mode="comment", model=self._name, res_id=self.id
)

def assign_to_me(self):
self.write({"user_id": self.env.user.id})
Expand Down

0 comments on commit ba0860b

Please sign in to comment.