This commit is contained in:
eslamabady 2024-10-13 14:09:11 +03:00
parent 710c72d76b
commit 01a32a4d77
1 changed files with 4 additions and 4 deletions

View File

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