Skip to content

[20.0][MIG] mail_gateway_telegram: Migration to 20.0 - #320

Open
CarlosRoca13 wants to merge 24 commits into
OCA:20.0from
Tecnativa:20.0-MIG-mail_gateway_telegram
Open

CarlosRoca13 wants to merge 24 commits into
OCA:20.0from
Tecnativa:20.0-MIG-mail_gateway_telegram

Conversation

@CarlosRoca13

Copy link
Copy Markdown

@OCA-git-bot OCA-git-bot added series:20.0 mod:mail_gateway_telegram Module mail_gateway_telegram labels Oct 27, 2026
@CarlosRoca13
CarlosRoca13 force-pushed the 20.0-MIG-mail_gateway_telegram branch from 1475ddd to e0ac31c Compare October 27, 2026 07:19
@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot migration mail_gateway_telegram

@OCA-git-bot OCA-git-bot added this to the 20.0 milestone Oct 27, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Oct 27, 2026
2 of 25 tasks
olgamarcocb and others added 24 commits November 18, 2026 13:17
Currently translated at 50.0% (8 of 16 strings)

Translation: social-16.0/social-16.0-mail_gateway_telegram
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_gateway_telegram/it/
…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% (16 of 16 strings)

Translation: social-18.0/social-18.0-mail_gateway_telegram
Translate-URL: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_gateway_telegram/es/
Store.one_id() builds the reference to a record rather than its content,
and its docstring asks callers to avoid it. Sending the gateway channels
from a res.partner._to_store() override instead, the way hr_holidays and
im_livechat extend partner store data, removes the need for the registry
guard added in #1913: a model override only exists in the registries
where its module is installed.

_thread_to_store() read the channels back from the follower references
and passed them on as gateway_followers without ever adding the partners
to the store, so it relates them with Store.many() now.
…sers

Gateway users without administration rights got an AccessError when loading a Telegram channel in Discuss (avatar) or when editing a message sent through Telegram, as mail.gateway is only readable by administrators.
@carlos-lopez-tecnativa
carlos-lopez-tecnativa force-pushed the 20.0-MIG-mail_gateway_telegram branch from e0ac31c to f85996d Compare November 18, 2026 18:18
@carlos-lopez-tecnativa

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:mail_gateway_telegram Module mail_gateway_telegram series:20.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.