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] Wrong stock quantity by location on product.template #506

Open
jprokop1 opened this issue Mar 30, 2023 · 0 comments
Open

[15] Wrong stock quantity by location on product.template #506

jprokop1 opened this issue Mar 30, 2023 · 0 comments

Comments

@jprokop1
Copy link

jprokop1 commented Mar 30, 2023

After migration to 15.0 the stock quantity on locations from product views (model product.template) are wrong, but from variants view (model product.product) OK.
Quick and dirty fix in stock_location.py (only for one variant by product):
if template_id:
product = self.env['product.product'].search([("product_tmpl_id", "=",template_id)] )[0]

Regards

Jan

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

No branches or pull requests

1 participant