I am trying to create instagram integration with odoo live chat and want to visible and make conversation with incoming messages in discuss module. I found that mail.channel is crucial in discuss module. However, I am noticed that mail.channel was not available in odoo 18. Does anyone know how can we develop the integration in discuss module in different way in odoo 18?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
1
الرد
1151
أدوات العرض
In Odoo 18, mail.channel has been replaced with the mail.thread and mail.message models for managing messages in the Discuss module. To integrate Instagram with Odoo Live Chat and display messages in Discuss, you can follow this approach:
1. Use mail.thread for Messaging
- Instead of mail.channel, use mail.message to store incoming Instagram messages.
- Ensure your model (res.partner or a custom one) is inheriting mail.thread to enable chatter functionality.
2. Fetch Instagram Messages via API
- Use Meta’s Graph API to retrieve Instagram messages.
- Store messages in Odoo using mail.message.create().
3. Display Messages in Discuss
- Associate each message with a record (partner or ticket) so that it appears in Discuss.
- Use message_post() to post messages in threads.
4. Create a New Discuss Channel (Optional)
- If you need a dedicated Instagram chat channel, create a new mail.channel-like structure by using mail.thread and mail.message.
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
0
يونيو 25
|
468 | ||
|
0
يناير 21
|
2331 | ||
|
0
مارس 19
|
5093 | ||
|
0
فبراير 16
|
4237 | ||
|
1
فبراير 16
|
3629 |