Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
3136 Vistas

I need a realtime notification with odoo owl and my backend, i am sending bus messages from odoo backend, and recieving on owl component, but i dont recieve anything on owl component side, what could be wrong? using odoo 17 btw
tried all of these options to send:

channel = (self._cr.dbname, 'xmd_redcross_realtime', 'public') channel2 = (self._cr.dbname, 'xmd_redcross_realtime', False)
 self.env['bus.bus']._sendone(channel, {'type': 'refresh'}, 'task changed') self.env['bus.bus']._sendone(channel2, {'type': 'refresh'}, 'task changed') self.env['bus.bus']._sendone('xmd_redcross_realtime', 'test', 'task changed')




recieving on owl component side:

useBus(this.env.bus, "xmd_redcross_realtime", () => this.onBusNotification());

also tried with and im enabling that port on my docker setup
gevent_port = 8072

Avatar
Descartar
Mejor respuesta

404 on that link. I am also interested on this topic. 

Avatar
Descartar
Mejor respuesta

Hi,

You can refer this blog to setup your bus service in odoo

https://www.cybrosys.com/blog/how-to-setup-real-time-communication-in-odoo-using-bus-service

Regards

Avatar
Descartar