Odoo Help


Real time model data on website

Manu Miu
on 2/25/16, 7:28 AM 1,319 views


is it possible or how is it possible to display data from a model in realtime on the website?

Do I have to create a socket connection from the server (over an extra port with proxy redirection) to the client and implement both socket endpoints in python and javascript by myself?

Or is there a standard odoo way to implement something like that?



Axel Mendoza

--Axel Mendoza--
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
On 2/25/16, 8:48 PM

Hi @Manu Miu

There are tools for doing what you need and examples in the Odoo modules website_livechat, im_livechat, im_chat and bus.

All of those modules bring you the tools and how to do that tasks. It will not be easy but they are there implemented for doing that kind of stuffs. Review carefully the bus js files and how they are used in the other modules

A little sidenote here: the performance for the bus js files isn't very good so you might want to keep an eye out for that too. I once had a talk with the Odoo developers and they where talking about not using it to refresh data every few seconds.

on 2/26/16, 2:30 AM

@Axel Mendoza: Thank you! That's what I wanted to know. But @Yenthe's sidenote causes me a headache, because I don't want to transport as few data as a chat and not every few seconds. It's a little bit more and should be in real-time. Would be absolutely no problem with socket.io but I want to realise this project with odoo. So would you advice me against odoo for a real-time data project?

Manu Miu
on 2/26/16, 6:28 AM

All depends on what data you need to display and who produce it and what it's the relation of that data with Odoo. You could use Odoo to build the website that display the data using socket.io and websockets using another service to return the data using a solution like nginx to upgrade the http connection to 1.1 and acting as a reverse proxy for your websocket service. I do this for our webrtc solution in Odoo using a solution developed in nodejs for that matter. In my case I need to use it with crm meetings and that's my reason to use Odoo for that end.

Axel Mendoza
on 2/26/16, 9:30 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 2/25/16, 7:28 AM
Seen: 1319 times
Last updated: 2/26/16, 6:07 AM