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