This question has been flagged
1 Reply
3309 Views

How can we get the maximum number of a Product XY, we are able to manufacture with the current items in our stock?


Example: 

Product A consists of 1x Product B, 2x Product C, 3x Product D.

I have 3x Product A, 3x Product C, 5x Product D.

So I can manufacture only 1 Product A.

Avatar
Discard
Author

Thanks, Brett, for your answer. I thought, this would be an essential feature of Odoo/OpenERP. What if, I want to get the number of products I can manufacture in the next 4 weeks or on a special day in the future?

Best Answer

Seems pretty simple, just need a custom module to inherit mrp.production and add a function to compute it from a button on the form.  Load up the BoM selected, get all the product IDs and quantities required, then use those product IDs to find current stock.  From there, it's just current stock modulo quantity required = quantity manufacturable from that raw material.  Take the lowest result out of that.

Avatar
Discard