mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-23 10:12:09 +02:00
19.0 vanilla
This commit is contained in:
parent
d1963a3c3a
commit
2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions
19
odoo-bringout-oca-ocb-bus/bus/models/ir_http.py
Normal file
19
odoo-bringout-oca-ocb-bus/bus/models/ir_http.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import api, models
|
||||
from ..websocket import WebsocketConnectionHandler
|
||||
|
||||
|
||||
class IrHttp(models.AbstractModel):
|
||||
_inherit = "ir.http"
|
||||
|
||||
@api.model
|
||||
def get_frontend_session_info(self):
|
||||
session_info = super().get_frontend_session_info()
|
||||
session_info["websocket_worker_version"] = WebsocketConnectionHandler._VERSION
|
||||
return session_info
|
||||
|
||||
def session_info(self):
|
||||
session_info = super().session_info()
|
||||
session_info["websocket_worker_version"] = WebsocketConnectionHandler._VERSION
|
||||
return session_info
|
||||
Loading…
Add table
Add a link
Reference in a new issue