Friday, September 1, 2023
1 change
New functionality added to Odoo
Adds WhatsApp integration so businesses can send approved WhatsApp templates and follow-up messages directly from Odoo documents, events, and point of sale. It also supports incoming WhatsApp conversations, media attachments, opt-out handling, and configuration tools to manage phone accounts and templates.
Original PR description
### WhatsApp template - Send Whatsapp from any document by creating a WhatsApp template for that document. - We can only send a template if the user replay then we can do a normal message for 24…
### WhatsApp template - Send Whatsapp from any document by creating a WhatsApp template for that document. - We can only send a template if the user replay then we can do a normal message for 24 hours of the last message from the user - it has fields that are required by https://developers.facebook.com/docs/whatsapp/cloud-api/guides/send-message-templates - select a model where this applied - if a document PDF need to be attached then select the report id - for dynamic values, you can use a User name, User mobile, Free text, Field of model - Send for approval after creating it OR if it is already created in WhatsApp then use sync from WhatsApp phone - If we send a message from the list view it will be sent by scheduled action ### WhatsApp Phone Configuration - Add a new model where we add all configuration details - Also, add allowed companies and notify users to send notification - sync templates from WhatsApp in one click ### Receive message: - if we send any templates in the past 15 days then we create a new mail channel with the last template message document (In this case we also post one message in the document that the new channel is created) - else we create a channel with notify user set in WhatsApp phone configuration - We support text, documents, images, audio, video, location ### Reaction to messages: - right now we only support received Reaction ### Send messages: - Whatsapp is only allowed to send messages if there is any message from the user in the past 24 hours so we block type in channel if there is no replay from the user in the past 24 hours - We can send text, documents, images, audio and video ### Blacklist by Whatsapp user - Create a new model to manage the blacklist - If the user sends text like "STOP", "UNSUBSCRIBE" and "STOP PROMOTIONS" (support translation) - blacklist so now from odoo we can't send a message to that user until the user sends another message or anyone manually change in Blacklist - this is used because if we do not stop the message if the user does not need it then if that user is reported the same to WhatsApp that WhatsApp number may be blocked - opt-out required for maintained good quality https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates ### Blacklist by Odoo user - add and remove mobile numbers manually in this list - if it's added then we ignore every message received by that user - this is useful when someone sends too many messages or sends big files frequently ### Event - A WhatsApp template is configurable in communication in event configuration ### Point of sale - There is a text box on the receipt screen to send receipts by WhatsApp (if the invoice is ticked and the invoice template is selected then the invoice is also sent) - User active this from POS configuration and selected template for POS receipt and Invoice task - 2377154