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] fastapi: always add authenticate_partner_id in context when evaluating ir rules #410

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

AnizR
Copy link
Contributor

@AnizR AnizR commented Jan 12, 2024

This fix is needed due to a modificiation of ir.rule that checks the domain when creating/modifying ir rules:

odoo/odoo@91a3566

The solution is to set authenticate_partner_id by default to False when it is not present in context

@OCA-git-bot
Copy link
Contributor

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

@AnizR AnizR force-pushed the 16.0-fix-fastapi-ir_rule_check_domain branch 2 times, most recently from 166f5c8 to e815ad9 Compare January 12, 2024 14:36
Copy link

@adrienpeiffer adrienpeiffer 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

@adrienpeiffer
Copy link

@sbidoul @lmignon

Copy link

@espo-tony espo-tony left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Member

@sbidoul sbidoul left a comment

Choose a reason for hiding this comment

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

Looks good. Last word to @lmignon, though.

@lmignon
Copy link
Contributor

lmignon commented Jan 17, 2024

@AnizR Can you add a file named 410.bugfix into the fastapi/readme/newsfragments directory. The content of this file will be used to fill the module's change log. It should therefore provide a short description of this PR to help users to know in an easy way the changes made between versions.

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

…en evaluating ir rules

This fix is needed since a modificiation of ir.rule that checks the domain when creating/modifying ir rules
The solution is to set authenticate_partner_id to False when it is not present in context
@AnizR AnizR force-pushed the 16.0-fix-fastapi-ir_rule_check_domain branch from e815ad9 to 7c125b4 Compare January 17, 2024 15:35
@AnizR
Copy link
Contributor Author

AnizR commented Jan 17, 2024

@AnizR Can you add a file named 410.bugfix into the fastapi/readme/newsfragments directory. The content of this file will be used to fill the module's change log. It should therefore provide a short description of this PR to help users to know in an easy way the changes made between versions.

Done 👍

@lmignon
Copy link
Contributor

lmignon commented Jan 17, 2024

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

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

@OCA-git-bot OCA-git-bot merged commit 42f8f02 into OCA:16.0 Jan 17, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at f055ab2. 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.

7 participants