Skip to content

[18.0] [FIX] mail_restrict_follower_selection: model domain for suggested recipients - #355

Open
luisDIXMIT wants to merge 1 commit into
OCA:18.0from
dixmit:18.0-fix-mail_restrict_follower_selection
Open

luisDIXMIT wants to merge 1 commit into
OCA:18.0from
dixmit:18.0-fix-mail_restrict_follower_selection

Conversation

@luisDIXMIT

@luisDIXMIT luisDIXMIT commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Forward port of OCA/social#1926

@OCA-git-bot OCA-git-bot added series:18.0 mod:mail_restrict_follower_selection Module mail_restrict_follower_selection labels Nov 16, 2026
…cipients

Suggested recipients were filtered with the global domain only, because
the model was not passed to _mail_restrict_follower_selection_get_domain
and the chatter call has no default_res_model in context, so
mail_restrict_follower_selection.domain.<model> was ignored there.
Also stop removing items from the list being iterated (as in 17.0).
@luisDIXMIT
luisDIXMIT force-pushed the 18.0-fix-mail_restrict_follower_selection branch from 30ec500 to 9bddbee Compare November 16, 2026 08:31

@CRogos CRogos 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.

Close and backport #332 ?

@luisDIXMIT

Copy link
Copy Markdown
Contributor Author

Close and backport #332 ?

Hi @CRogos, I don’t understand why I should close this PR in favor of backporting yours, since it still works as expected in 18.0. Am I missing something?

@CRogos CRogos 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.

@luisDIXMIT I have to say, I was confused by https://github.com/OCA/mail/pull/357/changes . In 19.0 the same port, is only some documentation update to the actual behavior.
I totally missed, that in 18.0, even with the same title, has a totally different implementation?

I agree with you, that we can stick with this PR.
Code LGTM.

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

Labels

mod:mail_restrict_follower_selection Module mail_restrict_follower_selection series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants