Merge pull request #1522 from expsa/fix-notify-duplicate

fix
This commit is contained in:
eslam 2024-10-13 14:14:40 +03:00 committed by GitHub
commit 35cbb05f0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -218,10 +218,10 @@ class EmployeeNotification(models.Model):
})}
partner_id.send_notification(
subject,msg,data=data, all_device=True)
emp.user_push_notification({
'title' : rec.msg,
'body' : rec.subject,
})
# emp.user_push_notification({
# 'title' : rec.msg,
# 'body' : rec.subject,
# })
else:
raise ValidationError(_("No employee Selected"))
rec.state = 'send'