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 · 1 comment
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.

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

Copy link

github-actions bot commented Feb 2, 2025

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

No branches or pull requests

1 participant