Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
330 มุมมอง

hello:
i want to add button in some in my custome module when i click it it open chat window to partner or anu one i predefined  how can i trigger the chat ?

อวตาร
ละทิ้ง

Hello there,
I have one doubt.
Partner→ Customer who probably has the portal user account, not the DB user account.
Discuss app → free chat app window [ especially for internal users] may reply to live chat from website.

A customer’s first message creates a chat link in Discuss, but how can an internal user initiate the chat first?

There is another option available, WhatsApp.

ผู้เขียน

the partner is contact ,

yes i use whatsapp module i dont Know how to open chat window 

คำตอบที่ดีที่สุด

Hi,


Refer to the following blog that explains how to send messages via the discuss module.


* https://www.cybrosys.com/blog/how-to-create-send-messages-to-channels-on-the-odoo-15-discuss-module


You can add the message posting function to your button function.


Hope it helps

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello there,

As you mentioned, you use WhatsApp, which can be accessed by hovering over a phone number in Contacts.


If you want to use this widget while inheriting the res.partner model, use a related field named 'phone'. With a phone field use,

<field name="phone" widget="phone"/>


Hope this information may help you.



อวตาร
ละทิ้ง