Skip to Content
Menu
This question has been flagged
4 Replies
2145 Views

Hello,

I've an issue: i'm trying to create a route in v16 where if a sell a product for 20 units, and i only have 5 units in my WH/stock, i need an automatic purchase order  for 15 units left. I tried some routes but anyone worked: at least i can create an automatic PO for the original SO's quantity. 

Anyone can help me?

Thanks in advance

Avatar
Discard
Best Answer

There are two processes:

Make To Order (MTO).  If you activate this (routes are archived by default i Odoo), with buy route on the product, you will get a purchase requisition directly connected to your sales order with the full qty. For whatever you have in stock.  

It is possible to manual override: Reduce qty on purchase, and deliver partly from stock. But it is manual.  But this is the downside of using MTO. It create extra work in cases where the process is not stictly MTO

The other process is usually named Make To Stock. (MTS).  Then you purchase into your stock and sell from there. In this process you use reodering rules on the product.  You can set minimum stock = reorder point, refill qty.  Running the process "Rescheduling" , automatic by default once a day) or manual from the inventory menu.  You also have the operation Replenishment to manually follow up what you need.

In the reorder rule you can set replenishment to Auto or Manual. If Manual you must use the operation Replenishment in Inventory.  If Auto requisitions will be reated with the rescheduling job automatic.

If you set Min Quantity = 0 you will only get need to replenish when you have sale for more than stock.  

Using reordering rules and Replenishment / Rescheduling job is the recommendation for your process.

Avatar
Discard
Best Answer

If the only route is ‘buy’ on the product then the easiest way would be to use the rules on delivery order operation. (Inventory >configuration> routes , if this menu is‘t there then configuration >warehouse, on the warehouse form click route smart button on top) 

On the delivery order operation, modify the ‘supply method‘ on the RULES to ‘take from stock, if unavailable trigger another rule’

Avatar
Discard
Best Answer

There's an OCA add-on that should help: ​Stock MTS+MTO Rule

This module adds a Make To Stock + Make to Order Route.

If you choose this, the creation of a purchase order will depend on the virtual stock. There are 3 cases :

  1. The virtual stock of the product is 0=> It will act exactly like the make to order route.
  2. The virtual stock is equal to the quantity ordered=> It will act exactly like a make to stock route
  3. The virtual stock is more than 0 but less than ordered quantity=> Some products will be taken from stock and a purchase order will be created for the balance . So it will act like both make to order and make to stock rule.
Avatar
Discard
Best Answer

Hi,
  When validating SO, a Delivery is created because of the route "deliver in one step" (in my case) and this route has only one  "PULL FROM" rule that does : 
"When products are needed in Partners/Customers, Delivery Orders are created from WH/Stock to fulfill the need."  open the rule → The supply method = take from stock...  Change it to "take from stock, if unavailable, trig another rule".
You can now create rules push / pull, combining with a reordering rules from product page : " If a product uses the Buy route, then a Request for Quotation (RFQ) is created when the reordering rule is triggered. If a product uses the Manufacture route, then a Manufacturing Order (MO) is created."
Take a look ate the buy route/rule, the available rules trigger various actions. If Odoo offers Push and Pull rules, others are also available. Each rule has an Action such as

  • Buy: when products are needed at the destination location, a request for quotation is created to fulfill the need.

I hope it will help you



Avatar
Discard
Author

Thanks a lot!

Related Posts Replies Views Activity
1
May 25
1545
1
Apr 24
2853
0
Nov 23
1104
1
Mar 23
2511
0
Oct 22
3155