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] stock_mts_mto_rule: company-specific products crash upgrade of module #2125

Open
kevinkhao opened this issue Aug 1, 2024 · 0 comments
Labels

Comments

@kevinkhao
Copy link
Contributor

kevinkhao commented Aug 1, 2024

module affected: stock_mts_mto_rule

In an intercompany context, when a product is company-specific and uses mts+mto rule, upgrading the module raises this error:

File "/opt/odoo/odoo/models.py", line 3464, in _check_company
raise UserError("\n".join(lines))
odoo.exceptions.UserError: Incompatible companies on records:

  • 'Make To Order + Make To Stock' belongs to company False and 'Products' (product_ids: 'San Francisco company-specific product') belongs to another company.

Steps to reproduce:

  1. Install this module
  2. Use MTS+MTO rule on a company-specific product
  3. Upgrade the module

Expected behavior
No exception on module upgrade

Temporary fix/workaround can be found here #2126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant