Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Failed to send WhatsApp message

Subscribe

Get notified when there's activity on this post

This question has been flagged
whatsappv17
13 Replies
8827 Views
Avatar
Mountrix

Hi all,


I configured a WhatsApp Business Account in Odoo 17 following this documentation. When I click on "Test Connection" I receive a success message saying "Credentials are valid". I also have a "Hello World" WhatsApp template approved which applies to the Contact model. 


Then I go to the Contacts app, I select a contact with a correct WhatsApp number, I click on the WhatsApp button and I select the "Hello World" template. When I click on "Send Message" I see on the Chatter a red WhatsApp icon. When I hover over this icon says "Failed to send" 😢




¿Can anyone help me to identify what can be wrong? ¿Is there a way to see more details about this error?


Thanks,

Ernesto

0
Avatar
Discard
Avatar
Jonathan Amador Zamarripa
Best Answer

Hello, I have the solution!


the problem is the numeric format that we get when we receive a message, it is different because Whatsapp adds a “1” after the country prefix, because of that digit odoo does not allow to send messages.


however it is possible to format the phone number from an automated option, for example: i am from mexico, so the country prefix is +52, but whatsapp returns +521.


for this we must go to settings and activate developer mode.


then go to settings>technical>automated actions.


there we create a new action by selecting the “whatsapp messages” module, activate it “on save” and the action to execute will be “execute code”.


The code will be the following, just make sure to change the country prefix to the country where you live for it to work:


if record.mobile_number and record.mobile_number.startswith(“+521”):

    # Replace '+521' with '+52'.

    formatted_number = record.mobile_number.replace(“+521”, “+52”)

    record.write({'mobile_number': formatted_number})


After saving everything, you can send messages without using templates, Greetings.



1
Avatar
Discard
Avatar
Ahmed Muhumed
Best Answer

I am facing the same issue, any solution to this?

0
Avatar
Discard
Avatar
Daniel Ricardo e SIlva
Best Answer

Estou com o mesmo problema. 

Inicialmente com número de teste do Meta, porém, em produção. 

  • Teste de credenciais funcionado. 
  • Envio de outro numero para o numero de teste marca dois traços. 
  • Envio do numero de teste para outro, apresenta falha como o do autor do tópico. 
  • Revisado todo o procedimento do manual. 
  • Testei sugestões da web, sem sucesso. 

Aguardo uma possivel solução. 

0
Avatar
Discard
Avatar
charlottegianna
Best Answer

any solution to this?

0
Avatar
Discard
charlottegianna

https://www.apkjaguar.com/

Avatar
Emilio Quezada Plaza
Best Answer

Hi

I found a solution (it worked for me)

When I configured Whatsapp it happens me the same, and (at least for me) the problem was in the step of configuring the permanent token.

At firts, when I created the user to configure the permanent token (in Meta), the user had only "user access", so instead I created an user with "Administrator Access" and then I did the following steps that where in the WhatsApp Documentation.

If you do this, remember to update the "Access Token" inside the WhatsApp Business account in Odoo.

I Hope this solution may help you.

Regards

0
Avatar
Discard
Avatar
rahul agarwal
Best Answer

any solution to this?

0
Avatar
Discard
Avatar
Jose
Best Answer

Same error

0
Avatar
Discard
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,

When operating your Meta app in development mode, it's crucial to note that test messages can be sent only to the configured phone numbers, with a maximum limit of five recipient phone numbers. This limitation is inherent to the development mode, permitting the inclusion of only five mobile numbers in the WhatsApp API setup for testing purposes. If the need arises to send messages to more numbers, it is advisable to switch the app to live mode.


Regards

0
Avatar
Discard
Avatar
Manish Bohra
Best Answer

Hello, 

Are you configure Sandbox account or what?'

In case of sandbox account you can sent only message to the self registered number.

0
Avatar
Discard
Avatar
Jefferson Iriarte
Best Answer

I have the same problem, the WhatsApp messages are sent only in the templates, the clients respond and everything is fine, but when the administrator answers in the conversation the messages that say failed are never sent.


I am using Odoo 17.0+e (Enterprise Edition)


I test in Odoo saas~16.4+e Enterprise Version, using the same WhatsApp Business Accun and everything works well, I can receive and send messages to clients without problems


0
Avatar
Discard
Avatar
Jeff MacKenzie
Best Answer

I have the same issue, i have opened a ticket with odoo support but there hasnt been any answer yet.

When a customer sends a message we receive it in odoo but cannot reply, it says sending failed and when we click on retry it stays in the queue and never is sent but the icon turns green in the chat as if it had been sent.

If i send a template message from odoo those messages are received with no issues. Its only the general chat that isnt working

0
Avatar
Discard
Avatar
Roberto Ricci
Best Answer

Same problem here.

0
Avatar
Discard
Avatar
Pablo Suárez Garcia
Best Answer

I had the same problem. Something additional, in my case, when the "client" sends me a message via WhatsApp I can receive it and respond from Odoo, but from the Pipeline model I don't see the messages in chatter

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
v17: WhatsApp built-in feature within Odoo...
whatsapp v17
Avatar
Avatar
Avatar
2
Sep 25
2990
Ya es posible hacer Upgrade de v17 a v17.1 ?
v17
Avatar
Avatar
1
Oct 25
1436
How to add a new Many2one field in res.config.settings? Solved
v17
Avatar
Avatar
Avatar
Avatar
4
Oct 25
4054
WhatsApp Campaigns and Bulk Messaging in Odoo
whatsapp
Avatar
Avatar
1
Sep 25
1517
Add field to ALL models in Odoo
v17
Avatar
Avatar
Avatar
2
Sep 25
2631
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now