[ADD]ADD notify for done task+add request in project invoice
This commit is contained in:
parent
8c17bc70cb
commit
b047465438
|
|
@ -62,6 +62,7 @@ class ProjectTask(models.Model):
|
|||
department_manager_users = self.env.ref('project_base.group_project_department_manager').users
|
||||
# Combine both user sets
|
||||
user_ids = manager_users | department_manager_users
|
||||
if self.stage_id.is_closed:
|
||||
self.env['mail.message'].create({
|
||||
'message_type': "notification",
|
||||
'body': _("Task %s is done for project %s and needs your action") % (self.name, self.project_id.project_no or ""),
|
||||
|
|
|
|||
Loading…
Reference in New Issue