-
-
Notifications
You must be signed in to change notification settings - Fork 702
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.0][FIX] stock_available_mrp: Use correct bom for computation #1887
[15.0][FIX] stock_available_mrp: Use correct bom for computation #1887
Conversation
If a product has siblings and more then one has a bom first(product.bom_ids) could return a bom for a diferent product, because bom_ids is a one2many field of product.template and this contains all boms of variants Therefor switch to the default methods of odoo _bom_find and _get_product2bom
96cd862
to
8c1a276
Compare
Use _bom_find instead of deprecated _get_product2bom
8c1a276
to
aca698d
Compare
ping @rousseldenis |
/ocabot merge patch |
This PR looks fantastic, let's merge it! |
This PR has the |
Congratulations, your PR was merged at 9d9cd8f. Thanks a lot for contributing to OCA. ❤️ |
If a product has siblings and more then one has a bom first(product.bom_ids) could return a bom
for a diferent product, because bom_ids is a one2many field of product.template and this contains all boms of variants Therefor switch to the default methods of odoo
_bom_find
Forwardport of #1884
cc @rousseldenis @acsonefho