This commit is contained in:
eslamabady 2024-10-07 14:21:20 +03:00
parent 906fdb4aa8
commit 648953d22a
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ class RestApi(Controller):
res = obj.read(["id", "state"])[0]
state = res["state"]
btn_new = request.env[BTN].sudo().search([("workflow_id", "=", int(btn.workflow_id.id)), (("node_id.node_name", "=", state)), ], [],)
if btn_new.send_manager:
if any(btn.send_manager for btn in btn_new):
emp_manager = self.get_emp_manager(obj)
obj.firebase_notification(emp_manager.user_id)
return http_helper.response(message="Successful", data=res)