Skip to content

[19.0][FIX] base_multi_company: initialize company on create - #1035

Merged
OCA-git-bot merged 1 commit into
OCA:19.0from
moduon:19.0-fix-base_multi_company-create
Jul 27, 2026
Merged

[19.0][FIX] base_multi_company: initialize company on create#1035
OCA-git-bot merged 1 commit into
OCA:19.0from
moduon:19.0-fix-base_multi_company-create

Conversation

@chienandalu

Copy link
Copy Markdown
Member

Avoid triggering the inverse write of company_id after creating a record. The intermediate record has no company_ids yet, which can make company-dependent record rules reject the write for users creating products.

cc @moduon MT-15413

please take a look @EmilioPascual @yajo

@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@OCA-git-bot OCA-git-bot added series:19.0 mod:base_multi_company Module base_multi_company labels Jul 27, 2026
@pedrobaeza pedrobaeza added this to the 19.0 milestone Jul 27, 2026
Comment thread base_multi_company/models/multi_company_abstract.py
Avoid triggering the inverse write of company_id after creating a record. The intermediate record has no company_ids yet, which can make company-dependent record rules reject the write for users creating products.

MT-15413
@chienandalu
chienandalu force-pushed the 19.0-fix-base_multi_company-create branch from e11c595 to eef8c4a Compare July 27, 2026 11:57
@pedrobaeza

Copy link
Copy Markdown
Member

/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 19.0-ocabot-merge-pr-1035-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 9a87439 into OCA:19.0 Jul 27, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

4 participants