Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

nobuQuartile
Copy link

@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

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.
@OCA-git-bot
Copy link
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
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
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
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
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
Member

hbrunn commented Dec 12, 2024

test are fixed in #1519

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants