mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-21 22:12:03 +02:00
19.0 vanilla
This commit is contained in:
parent
d1963a3c3a
commit
2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions
|
|
@ -11,3 +11,9 @@ class BusController(Controller):
|
|||
return request.make_response(json.dumps(
|
||||
request.env['ir.model']._get_model_definitions(json.loads(model_names_to_fetch)),
|
||||
))
|
||||
|
||||
@route("/bus/has_missed_notifications", type="jsonrpc", auth="public")
|
||||
def has_missed_notifications(self, last_notification_id):
|
||||
# sudo - bus.bus: checking if a notification still exists in order to
|
||||
# detect missed notification during disconnect is allowed.
|
||||
return request.env["bus.bus"].sudo().search_count([("id", "=", last_notification_id)]) == 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue