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

[15.0][FIX] base_multi_company: _check_company multi-record aware #540

Conversation

pedrobaeza
Copy link
Member

@pedrobaeza pedrobaeza commented Dec 4, 2023

Follow-up of #535 - Forward-port to v15 of #539

_check_company is not an ensure_one method, so we need to make sure that if it's called with several records, and they don't belong to the same company, everything is OK.

@Tecnativa

@pedrobaeza pedrobaeza added this to the 15.0 milestone Dec 4, 2023
@pedrobaeza pedrobaeza force-pushed the 15.0-fix-base_multi_company-check_company-multi_record branch 2 times, most recently from 39277e4 to ce57bf7 Compare December 4, 2023 12:47
Follow-up of OCA#535

_check_company is not an `ensure_one` method, so we need to make
sure that if it's called with several records, and they don't
belong to the same company, everything is OK.
@pedrobaeza pedrobaeza force-pushed the 15.0-fix-base_multi_company-check_company-multi_record branch from ce57bf7 to 98f6211 Compare December 4, 2023 12:51
@pedrobaeza
Copy link
Member Author

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 15.0-ocabot-merge-pr-540-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit ce39534 into OCA:15.0 Dec 4, 2023
@OCA-git-bot
Copy link
Contributor

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

@pedrobaeza pedrobaeza deleted the 15.0-fix-base_multi_company-check_company-multi_record branch December 4, 2023 15:02
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.

4 participants