Skip to content

[MIG] mail_gateway_whatsapp: Migration to 19.0#203

Draft
DucTruongKomit wants to merge 124 commits into
OCA:19.0from
komit-consulting:19.0-mig-mail_gateway_whatsapp
Draft

[MIG] mail_gateway_whatsapp: Migration to 19.0#203
DucTruongKomit wants to merge 124 commits into
OCA:19.0from
komit-consulting:19.0-mig-mail_gateway_whatsapp

Conversation

@DucTruongKomit

@DucTruongKomit DucTruongKomit commented Jun 2, 2026

Copy link
Copy Markdown

[MIG] mail_gateway_whatsapp: Migration to 19.0

This module is depended to mail_gateway in PR: #202.
So I added the Commits here for test.

olgamarcocb and others added 30 commits July 24, 2025 08:58
Currently translated at 100.0% (85 of 85 strings)

Translation: social-16.0/social-16.0-mail_gateway
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_gateway/it/
Other OCA modules extending the composer add m2m fields with fixed
relations. To avoid a glue module we try for the moment to add those
manually.

TT51108
Currently translated at 81.2% (113 of 139 strings)

Translation: social-16.0/social-16.0-mail_gateway
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_gateway/it/
Currently translated at 10.7% (15 of 139 strings)

Translation: social-16.0/social-16.0-mail_gateway
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_gateway/es/
…ated to the current user

- Use OdooBot for webhooks instead of the current user, following the same logic as Odoo.
- Avoid automatically adding the current user as a member of a new gateway to prevent notifications for all messages. This is now an explicit configuration.
…ging thread

Before these changes, the messages sent using the email thread were not being delivered.

After making these changes, since the gateway_notifications key is empty, the super is called and the process continues normally.
Signed-off-by pedrobaeza
OCA-git-bot and others added 27 commits July 3, 2026 17:17
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-18.0/social-18.0-mail_gateway_whatsapp
Translate-URL: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_gateway_whatsapp/
Currently translated at 100.0% (254 of 254 strings)

Translation: social-18.0/social-18.0-mail_gateway_whatsapp
Translate-URL: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_gateway_whatsapp/it/
…th that mark, discuss will show an audio player instead of a download button. For reference, this is where the "voice" key is detected and the attachment is processed as such:

https://github.com/odoo/odoo/blob/3a54f1e4b706d6732d8dc16bc206f5fc4d6ab923/addons/mail/models/discuss/ir_attachment.py#L29-L32
Currently translated at 100.0% (254 of 254 strings)

Translation: social-18.0/social-18.0-mail_gateway_whatsapp
Translate-URL: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_gateway_whatsapp/es/
When a message from whatsapp arrives and it's a response from a message sent from Odoo, set the parent_id field.
… body. Currently, attachment captions are disregarded.
Currently translated at 4.3% (11 of 254 strings)

Translation: social-18.0/social-18.0-mail_gateway_whatsapp
Translate-URL: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_gateway_whatsapp/gl/
Currently translated at 8.2% (21 of 254 strings)

Translation: social-18.0/social-18.0-mail_gateway_whatsapp
Translate-URL: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_gateway_whatsapp/gl/
Currently translated at 11.4% (29 of 254 strings)

Translation: social-18.0/social-18.0-mail_gateway_whatsapp
Translate-URL: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_gateway_whatsapp/gl/
Currently translated at 100.0% (254 of 254 strings)

Translation: social-18.0/social-18.0-mail_gateway_whatsapp
Translate-URL: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_gateway_whatsapp/es/
Currently translated at 49.6% (126 of 254 strings)

Translation: social-18.0/social-18.0-mail_gateway_whatsapp
Translate-URL: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_gateway_whatsapp/pt_BR/
Currently translated at 61.0% (155 of 254 strings)

Translation: social-18.0/social-18.0-mail_gateway_whatsapp
Translate-URL: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_gateway_whatsapp/gl/
Currently translated at 65.7% (167 of 254 strings)

Translation: social-18.0/social-18.0-mail_gateway_whatsapp
Translate-URL: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_gateway_whatsapp/gl/
Currently translated at 89.3% (227 of 254 strings)

Translation: social-18.0/social-18.0-mail_gateway_whatsapp
Translate-URL: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_gateway_whatsapp/gl/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-18.0/social-18.0-mail_gateway_whatsapp
Translate-URL: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_gateway_whatsapp/
Currently translated at 100.0% (255 of 255 strings)

Translation: social-18.0/social-18.0-mail_gateway_whatsapp
Translate-URL: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_gateway_whatsapp/it/
@DucTruongKomit DucTruongKomit force-pushed the 19.0-mig-mail_gateway_whatsapp branch from 56e3f02 to 14a76b3 Compare July 3, 2026 10:18
@DucTruongKomit DucTruongKomit force-pushed the 19.0-mig-mail_gateway_whatsapp branch from 14a76b3 to 46971f8 Compare July 3, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:mail_gateway_whatsapp Module mail_gateway_whatsapp mod:mail_gateway Module mail_gateway series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.