[18.0][IMP] mail_gateway_whatsapp: Add support for messages in server actions - #1796
Conversation
7a4b380 to
c29e678
Compare
c29e678 to
356d50f
Compare
356d50f to
f2d97c7
Compare
32abaf4 to
7d2d4fe
Compare
carlos-lopez-tecnativa
left a comment
There was a problem hiding this comment.
I got an error when using the server action.

I fixed this error in https://github.com/OCA/social/compare/c29e67864d94aae3e0107e7edb6c540b8d62cffe..356d50f14e48c657fe7614b008f214ef2f2e108e but I see that you reverted my change in https://github.com/OCA/social/compare/f2d97c7b9c41f53225e1b49180715d8be66745c5..32abaf45a6bbdb55080786cc43b8e4b06dde3848 Why?
Note that the function render_body_message expects the default_res_id or default_res_ids keys in the context; otherwise, the record is not set correctly.
social/mail_gateway_whatsapp/models/mail_whatsapp_template.py
Lines 436 to 442 in 9612966
You may want to send messages through the WhatsApp gateway in your server actions the same you are able to send mails in the linked documents. This also allows to select this kind of server action on automation rules (base_automation). TT57123
You may have several contacts with the same mobile number.
e6a9c52 to
70da8f3
Compare
|
@carlos-lopez-tecnativa sorry the overwritten was a mistake on my side. The context has been restored. |
|
/ocabot merge minor |
|
This PR looks fantastic, let's merge it! |
|
Congratulations, your PR was merged at d436ebd. Thanks a lot for contributing to OCA. ❤️ |
Depends on:
You may want to send messages through the WhatsApp gateway in your server actions the same you are able to send mails in the linked documents.
This also allows to select this kind of server action on automation rules (base_automation).
@Tecnativa TT57123