Odoo Help

0

[7.0] Maximum number of products we can manufacture?

By
Peter
on 3/25/15, 4:58 AM 677 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.

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?

Peter
on 4/20/15, 9:34 AM
1

Brett Lehrer

--Brett Lehrer--
1272
| 5 5 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.

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

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