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_gateway: Pass company in order to ensure that it is executed properly #1444

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

etobella
Copy link
Member

No description provided.

@pedrobaeza pedrobaeza changed the title [FIX] mail_gateway: Pass company in order to ensure that it is executed properly [16.0][FIX] mail_gateway: Pass company in order to ensure that it is executed properly Sep 12, 2024
@pedrobaeza pedrobaeza added this to the 16.0 milestone Sep 12, 2024
@@ -113,7 +113,7 @@ def create(self, mvals):
@tools.ormcache()
def _get_gateway_map(self, state="integrated", gateway_type=False):
result = {}
for record in self.search(
for record in self.sudo().search(
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't you limit here by company in this search?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, because this map is intended to be used on the controller entry for the gateway, and the controller does not know the company until we check the gateway

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

Ok, let's fast-track it then:

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

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

@OCA-git-bot OCA-git-bot merged commit fdc0c60 into OCA:16.0 Sep 12, 2024
9 checks passed
@OCA-git-bot
Copy link
Contributor

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

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.

3 participants