Skip to content

Conversation

@CarlosRoca13
Copy link
Contributor

@CarlosRoca13 CarlosRoca13 commented Aug 8, 2025

@CarlosRoca13
Copy link
Contributor Author

ping @carlos-lopez-tecnativa

@pedrobaeza
Copy link
Member

/ocabot migration mail_gateway_whatsapp

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Aug 8, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Aug 8, 2025
34 tasks
@CarlosRoca13 CarlosRoca13 force-pushed the 18.0-MIG-mail_gateway_whatsapp branch from 4de4454 to d152729 Compare August 20, 2025 09:09
@CarlosRoca13 CarlosRoca13 marked this pull request as ready for review August 20, 2025 09:32
@CarlosRoca13 CarlosRoca13 force-pushed the 18.0-MIG-mail_gateway_whatsapp branch 2 times, most recently from 82e7b3c to d3555bb Compare August 20, 2025 09:53
Copy link
Contributor

@carlos-lopez-tecnativa carlos-lopez-tecnativa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally with #1701
LGTM, just a minor change.

<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">

<t t-name="mail_gateway_whatsapp.SendWhatsappButton" owl="1">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<t t-name="mail_gateway_whatsapp.SendWhatsappButton" owl="1">
<t t-name="mail_gateway_whatsapp.SendWhatsappButton">

selection_add=[("whatsapp", "WhatsApp")], ondelete={"whatsapp": "cascade"}
)
whatsapp_from_phone = fields.Char()
whatsapp_version = fields.Char(default="15.0")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The minimal API version supported by META for new apps is 23.0. It could be a good time to update this as the default value. WDYT?

Suggested change
whatsapp_version = fields.Char(default="15.0")
whatsapp_version = fields.Char(default="23.0")

@CarlosRoca13 CarlosRoca13 force-pushed the 18.0-MIG-mail_gateway_whatsapp branch from d3555bb to dc6b288 Compare August 21, 2025 06:20
@CarlosRoca13
Copy link
Contributor Author

Changes done @carlos-lopez-tecnativa

@pedrobaeza
Copy link
Member

Remove temp commit.

olgamarcocb and others added 18 commits August 21, 2025 08:38
Allow to send documents, images and so on
add mark on message
Improve security
Pass logic to components
Add tests
Manage change of version of Facebook API
Currently translated at 4.1% (4 of 96 strings)

Translation: social-16.0/social-16.0-mail_gateway_whatsapp
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_gateway_whatsapp/es/
If the company wants to initiate a conversation with a customer, a template must be used; otherwise, messages will not be sent.
This also applies when the last conversation with the customer is older than 24 hours.

- Enabled downloading templates from META
- Added the ability to create templates directly in Odoo.

Note: Currently, templates with variables or buttons are not supported.
…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.
Currently translated at 100.0% (210 of 210 strings)

Translation: social-16.0/social-16.0-mail_gateway_whatsapp
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_gateway_whatsapp/it/
@CarlosRoca13 CarlosRoca13 force-pushed the 18.0-MIG-mail_gateway_whatsapp branch from dc6b288 to d933a99 Compare August 21, 2025 06:38
@CarlosRoca13
Copy link
Contributor Author

Done @pedrobaeza

@pedrobaeza
Copy link
Member

I'll wait till @carlos-lopez-tecnativa approval, as I didn't see the one in the dependency.

Copy link
Contributor

@carlos-lopez-tecnativa carlos-lopez-tecnativa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 18.0-ocabot-merge-pr-1703-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit afea0ee into OCA:18.0 Aug 21, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at b3dc417. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza pedrobaeza deleted the 18.0-MIG-mail_gateway_whatsapp branch August 21, 2025 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.