19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:30:27 +01:00
parent d1963a3c3a
commit 2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions

View file

@ -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