[IMP] hr_expense: less email notification on assignation

Managers were receiving 2 emails to say basically the same thing. This
commit removes one of those emails ("You have been assigned to ...").

closes odoo/odoo#39058

Taskid: 2067994
X-original-commit: 1dbffeb7dba9ed862d6c62ebd771e7581dd33250
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
Kevin Baptiste
2019-10-18 19:30:04 +00:00
committed by fw-bot
parent c3335a0db0
commit 08eafe3a57
+1 -1
View File
@@ -746,7 +746,7 @@ class HrExpenseSheet(models.Model):
@api.model
def create(self, vals):
sheet = super(HrExpenseSheet, self.with_context(mail_create_nosubscribe=True)).create(vals)
sheet = super(HrExpenseSheet, self.with_context(mail_create_nosubscribe=True, mail_auto_subscribe_no_notify=True)).create(vals)
sheet.activity_update()
return sheet