Community mailing list archives

Procurement Make To Order Check Stock First

- 05/18/2015 08:14:32

Hello Odoo Community,


There’s a lot of request that asked about procurement method in Make To Order, to be check stock first.

Also there’s a discussion about this topic on the forum:


But still there’s no solution about it,

Its very strange because it must be a basic feature of ERP for procurement process but Odoo doesn’t developed this function.

Even the warehouse system already upgraded in version 8, there’s still no solution about it.


So in my side, we begin to developed a module to achieve this function.


How the module works:

In Routes we have add additional checkbox called “Check Stock”,

You can check this checkbox on “Make To Order”, and the behavior of this make to order will always check the stock first rather than always create a PO or MO without consider the stock.

I added this checkbox, so we still have a past behavior of make to order.

When you have product that make to order and buy or manufacture,

The system will readjust the quantity to buy or manufacture based on the quantity that we already have on procurement process.


The computation formula is:

If product forescasted quantity >=0,

We apply the formula: procurement quantity = Order quantity – product forescasted quantity

If order quantity <= product forescasted

We cancel the procurement.


Right now the module is still beta and never used in production database and If there’s a people that want this function, can you help us to test it?


In our side we have test this module and its worked:

Case1:  sell Product (MTO and buy)

Case 2: sell product (MTO and manufacture)

Case 3: sell product (MTO and manufacture), and the raw material of that product BoM (MTO and buy)

Case 4:  manufacture product (MTO and manufacture), and the raw material of that product BoM (MTO and buy)


Another case that not test yet:

Multi Level BoM (test it above 2levels)

Multi Location

Multi company

Multi Warehouse

Multi Company, multi warehouse and multi location




Module link:




Thank You.


Best Regards,

Hans Yonathan

Odoo Support


Expert in Finance, Information System & Business Intelligence

Odoo Silver Partner


Tel. 13670137019 (China - Shenzhen)