Skip to content

[20.0][MIG] mail_show_follower: Migration to version 20.0 - #356

Merged
OCA-git-bot merged 39 commits into
OCA:20.0from
Tecnativa:20.0-mig-mail_show_follower
Dec 2, 2026
Merged

OCA-git-bot merged 39 commits into
OCA:20.0from
Tecnativa:20.0-mig-mail_show_follower

Conversation

@adasatorres-tecnativa

Copy link
Copy Markdown

ValentinVinagre and others added 15 commits November 16, 2026 09:32
Display CC according to notification_type
Currently translated at 100.0% (7 of 7 strings)

Translation: social-12.0/social-12.0-mail_show_follower
Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_show_follower/fr/
As commented in OCA/social#788 the PR should be merged manually but we should update the version of the module as a minor update
Added settings to customize notification and translations to important parts of the message.

[FIX] Security fixes and simplified customization

Field `show_followers_partner_format` formatted with %(param)s
Removed CSS customizations

[FIX] README options

[FIX] Index.html configure

[FIX] Several changes

- Removed unnecesary properties on res_config_settings
- Markup safe on partner_format
- Use email_domain_extract instead own one
When using composer, doesn't include all recipients of the message on the notification.
In the highly improbable but actually possible and real world case that a partner has more than one user associated, this change makes the emails able to send.

@moduon MT-1634
@oca-cla-bot

oca-cla-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@OCA-git-bot OCA-git-bot added mod:mail_show_follower Module mail_show_follower series:20.0 labels Nov 16, 2026
@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot migration mail_show_follower

@OCA-git-bot OCA-git-bot added this to the 20.0 milestone Nov 16, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Nov 16, 2026
3 of 27 tasks
vvrossem and others added 9 commits November 17, 2026 09:38
This module aims to show the recipients of an email in the email header, but the previous implementation was not suitable for internal notes.

When **logging an internal note** with tagged users and/or partners, those specific recipients should be displayed
as well as the document's followers subscribed to this message subtype.

When **sending an email**, the recipients should be the document's followers.

This is achieved by using the union of `mail.mail`'s `recipient_ids` and `notified_partner_ids`.
Currently translated at 100.0% (17 of 17 strings)

Translation: social-16.0/social-16.0-mail_show_follower
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_show_follower/pt_BR/
Currently translated at 100.0% (17 of 17 strings)

Translation: social-16.0/social-16.0-mail_show_follower
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_show_follower/it/
…sages correctly + proper lang handle

In a multi-company environment, if one company uses the
show_followers_partner_format by partner_name and another company
uses partner_email, a user with permissions in both companies may
experience issues. If a document belongs to Company A, but the current
company is set to Company B, the message format is taken from the
current company (Company B) instead of the document’s company
(Company A). This fix ensures that the message format is rendered based
on the document's company.

It also fixes the lang handling for cases with False values.
Slides and forums are also places where you don't want to show the recipients.
Currently translated at 100.0% (21 of 21 strings)

Translation: social-16.0/social-16.0-mail_show_follower
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_show_follower/it/
Currently translated at 100.0% (21 of 21 strings)

Translation: social-16.0/social-16.0-mail_show_follower
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_show_follower/pt_BR/

@pilarvargas-tecnativa pilarvargas-tecnativa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 👍

@StefanRijnhart StefanRijnhart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Small comment.

@pilarvargas-tecnativa did you mean to approve or just leave a comment?

@pilarvargas-tecnativa

Copy link
Copy Markdown
Contributor

@adasatorres-tecnativa Could you please check what @StefanRijnhart said?

@StefanRijnhart StefanRijnhart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@pedrobaeza

Copy link
Copy Markdown
Member

@apik-mgu can you sign the CLA?

@apik-mgu

apik-mgu commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

@pedrobaeza It's signed.

@pedrobaeza

Copy link
Copy Markdown
Member

Thanks!

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@OCA-git-bot
OCA-git-bot merged commit 72817ed into OCA:20.0 Dec 2, 2026
6 of 8 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@pedrobaeza
pedrobaeza deleted the 20.0-mig-mail_show_follower branch December 2, 2026 09:44
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.