Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
581 Представления

Hi Odoo Community,

I'm working on customizing the POS module in Odoo 18 Community and want to add a "Send via WhatsApp" button on the receipt screen (the screen that shows after a sale is completed).

The functionality I’m looking for is as follows:

  • A button should be displayed on the final POS receipt screen.
  • When clicked, it should send the order receipt (or summary) as a message to the customer's WhatsApp number using the WhatsApp API (or any other service like Twilio or WhatsApp Business API).

I have experience with Python and JavaScript/OWL, but I need some guidance on the following:

  • How to inject this button into the OWL-based POS receipt screen.
  • How to send a WhatsApp message by calling an external API from the backend (e.g., using Twilio or WhatsApp Business API).
  • How to extract the customer's WhatsApp number from the order.

Any help, code snippets, or pointers would be greatly appreciated!

Thanks in advance 🙏

Аватар
Отменить