How can we get the maximum number of a Product XY, we are able to manufacture with the current items in our stock?
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.
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.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/25/15, 4:58 AM|
|Seen: 479 times|
|Last updated: 4/20/15, 9:34 AM|