Merge pull request #1465 from expsa/dev_odex25_mobile
Dev odex25 mobile
This commit is contained in:
commit
a8c5b78928
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue