Odoo Help

Welcome!

This community 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.

0

Real time model data on website

By
Manu Miu
on 2/25/16, 7:28 AM 548 views

Hi,


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?


Thanks!

1

Axel Mendoza

--Axel Mendoza--
10228
| 7 7 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 an 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.

Yenthe
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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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