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

[13.0][FIX] base_multi_company: Make company_id writeable again #313

Merged

Conversation

pedrobaeza
Copy link
Member

Not being writeable, we have warnings on constraints over this field (it's used for example in sale module for product.template model).

Giving an inverse to the field, we avoid this problem and give compatibility to any other module that writes this field.

A little patch on _name_search is also provided.

@Tecnativa

@pedrobaeza pedrobaeza added this to the 13.0 milestone Sep 23, 2021
Not being writeable, we have warnings on constraints over this field
(it's used for example in `sale` module for `product.template` model).

Giving an inverse to the field, we avoid this problem and give
compatibility to any other module that writes this field.
@pedrobaeza pedrobaeza force-pushed the 13.0-base_multi_company-company_id-inverse branch from 7e32dab to 3709655 Compare September 23, 2021 07:36
Copy link
Contributor

@AaronHForgeFlow AaronHForgeFlow 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
Contributor

@LoisRForgeFlow LoisRForgeFlow left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@pedrobaeza
Copy link
Member Author

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 13.0-ocabot-merge-pr-313-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 45fd37a into OCA:13.0 Sep 23, 2021
@OCA-git-bot
Copy link
Contributor

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

@LoisRForgeFlow
Copy link
Contributor

@pedrobaeza will you forwardport this to v14?

@pedrobaeza pedrobaeza deleted the 13.0-base_multi_company-company_id-inverse branch September 27, 2021 17:53
@pedrobaeza
Copy link
Member Author

The module is not yet migrated.

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.

None yet

5 participants