Skip to content

[16.0][FIX] mail_show_follower: Company identification in _send()#1517

Merged
OCA-git-bot merged 1 commit intoOCA:16.0from
qrtl:16.0-fix-mail_show_follower
Mar 18, 2025
Merged

[16.0][FIX] mail_show_follower: Company identification in _send()#1517
OCA-git-bot merged 1 commit intoOCA:16.0from
qrtl:16.0-fix-mail_show_follower

Conversation

@nobuQuartile
Copy link
Copy Markdown

@nobuQuartile nobuQuartile commented Dec 5, 2024

Before this commit, 'Show Internal Users CC' would always be False, regardless of the setting in the company, in case the message came from a record with a company_id field but without a value assignment to it (e.g., a partner record with no company), as company would be an empty record.

This commit fixes the behavior by capturing company from self.env in these cases.

@qrtl QT5021

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hi @yajo,
some modules you are maintaining are being modified, check this out!

@nobuQuartile nobuQuartile changed the title [FIX] mail_show_follower: Company identification in _send() [16.0][FIX] mail_show_follower: Company identification in _send() Dec 5, 2024
@pedrobaeza pedrobaeza added this to the 16.0 milestone Dec 5, 2024
Copy link
Copy Markdown
Member

@yostashiro yostashiro left a comment

Choose a reason for hiding this comment

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

Code review.

Copy link
Copy Markdown
Member

@yajo yajo 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 patch

@OCA-git-bot
Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-1517-by-yajo-bump-patch, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Dec 11, 2024
Signed-off-by yajo
@OCA-git-bot
Copy link
Copy Markdown
Contributor

@yajo your merge command was aborted due to failed check(s), which you can inspect on this commit of 16.0-ocabot-merge-pr-1517-by-yajo-bump-patch.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@hbrunn
Copy link
Copy Markdown
Member

hbrunn commented Dec 12, 2024

test are fixed in #1519

Copy link
Copy Markdown

@AungKoKoLin1997 AungKoKoLin1997 left a comment

Choose a reason for hiding this comment

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

@nobuQuartile Can you please rebase to fix the CI and get it merged?

Before this commit, 'Show Internal Users CC' would always be False,
regardless of the setting in the company, in case the message came
from a record with a company_id field but without a value assignment to
it (e.g., a partner record with no company), as company would be an
empty record.

This commit fixes the behavior by capturing company from self.env in
these cases.
@nobuQuartile nobuQuartile force-pushed the 16.0-fix-mail_show_follower branch from 865dfc0 to 01b20b7 Compare March 12, 2025 04:58
@nobuQuartile
Copy link
Copy Markdown
Author

nobuQuartile commented Mar 12, 2025

@nobuQuartile Can you please rebase to fix the CI and get it merged?

I have rebased it.

@AungKoKoLin1997
Copy link
Copy Markdown

@yajo Can you please try to merge again?

@yajo
Copy link
Copy Markdown
Member

yajo commented Mar 18, 2025

/ocabot merge patch

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-1517-by-yajo-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 00aed36 into OCA:16.0 Mar 18, 2025
8 of 9 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

@yostashiro
Copy link
Copy Markdown
Member

@nobuQuartile Please forward-port this.

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.

7 participants