fix
This commit is contained in:
parent
710c72d76b
commit
01a32a4d77
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in New Issue