Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
228 Widoki

Hi everyone, 

I have integrated WhatsApp with Odoo 15 using the WhatsApp Meta app from
https://developers.facebook.com/ . The integration is working — I can send messages from Odoo to customers on WhatsApp.

Now I want to send a file link along with the message, like an invoice. for this I am using controller method, So I am generating a public link for the file, for example:

http://my_domain.com/whatsapp/public_file/21809

But when I click on this link, it shows this error:

Not Found

The requested URL was not found on the server.

I've been stuck on this problem for a few days. Can anyone help me understand what might be wrong?


Awatar
Odrzuć
Najlepsza odpowiedź

To send a file link via WhatsApp from Odoo, you need to use the correct URL that Odoo uses to serve attachments.


You can directly use Odoo’s built-in route for attachments:

http://my_domain.com/web/content/21809


Make sure the attachment with ID 21809 actually exists in your database. You can find it in the `ir.attachment` model.


Also, ensure that the attachment is not restricted (check if it's public or associated with a record that the user has access to). If needed, set public=True or share it with proper access rights.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
lip 25
223
2
lip 25
974
1
maj 25
734
0
maj 25
856
2
kwi 25
778