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.