Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


[7.0] Maximum number of products we can manufacture?

on 3/25/15, 4:58 AM 479 views

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.

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?

on 4/20/15, 9:34 AM

Brett Lehrer

--Brett Lehrer--
| 5 4 8
Milwaukee, United States
--Brett Lehrer--
Director of IT and open source enthusiast.
Brett Lehrer
On 4/17/15, 12:30 AM

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.

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 3/25/15, 4:58 AM
Seen: 479 times
Last updated: 4/20/15, 9:34 AM