Whenever I talk to the Odoobot, the bot's answer is displayed before my question, for example:
Odoobot: answer
User: question
However, when I refresh the page, the order is fixed:
User: question
Odoobot: answer
Is this a configuration error? Maybe related to longpolling? Anyone knows why is this happening?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Buchhaltung
- Lager
- PoS
- Project
- MRP
Diese Frage wurde gekennzeichnet
This issue — where OdooBot's answer appears before the user's question in the Discuss module or live chat — is not a configuration error per se, but more likely a race condition or frontend rendering timing issue due to longpolling or improper message sequencing in Odoo 17.
Reason:
Odoo uses bus.longpolling to handle real-time chat messages. When a user sends a message to OdooBot, the following happens:
- User input is sent and logged.
- The bot processes it and sends a reply.
- Both messages (user’s and bot’s) arrive at the browser nearly at the same time.
- If the frontend doesn't strictly order the messages based on timestamps or message IDs, you may see the reply displayed before the question.
After a page refresh, the order is corrected because messages are re-rendered based on proper history/timestamp.
If you want a working implementation, I can provide a small custom module or exact JS file override for your version of Odoo 17 (Community or Enterprise).
Thanks & Regrads,
Email :- contact@datainteger.com
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
|
2
Juli 24
|
1518 | ||
|
1
Dez. 23
|
1461 | ||
|
1
Juni 24
|
1279 | ||
|
0
Feb. 25
|
382 | ||
|
3
Apr. 25
|
834 |