Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
205 Lượt xem

Hi everyone,

I’m struggling with a specific case in Odoo (v18, Enterprise on Odoo.sh) and I’d like to know if anyone has managed to configure this without custom development.

👉 Scenario:

  • We have a location WH/Pre-Production.
  • When a Manufacturing Order (MO) is launched, Odoo creates a picking WH/Stock → WH/Pre-Production (Pick Components).
  • In practice, the forklift driver always moves the full box (e.g. 50 units), even if the MO only requires 10.

👉 What happens now:

  • After the MO is validated, Odoo consumes only the 10 units.
  • The remaining 40 units stay in Pre-Production as free stock.
  • The next MO ignores those 40 and triggers a new picking from WH/Stock, leaving leftovers piling up in Pre-Production.

👉 The logic I need:

  • If in Pre-Production we have:
    • On Hand > Forecasted (i.e. there is more stock than what is reserved to be consumed),
    • then the difference should be considered surplus and should be automatically (or semi-automatically) pushed back to WH/Stock.

👉 What I tried:

  • I created a second operation type Return (WH/Pre-Production → WH/Stock).
  • Then I added a push rule with conditions like:
    • Forecasted Quantity > 0
    • On Hand Quantity > 0
  • But Odoo rules only allow comparing against fixed numbers, not against each other.

👉 Question:

Has anyone found a standard way to handle this kind of “return of surplus to stock”?

  • Is there a way to configure routes/rules so that Odoo detects On Hand > Forecasted and pushes back the difference?
  • Or do I really need a Server Action / custom module to implement this logic?

Any advice or shared experience would be super helpful 🙏

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Changing the rule to “Take From Stock, if unavailable, Trigger Another Rule” will solve the part where Odoo ignores leftovers in Pre-Production. With this configuration, the next Manufacturing Order will first consume any stock already available in Pre-Production (such as the extra 40 units) and will only trigger a new transfer from WH/Stock if there is a shortage.

However, this does not automatically return surplus stock from Pre-Production back to WH/Stock. The extra quantities will stay in Pre-Production until another MO uses them. If your process allows Pre-Production to act as a buffer, this setup is sufficient. If the requirement is to always clear Pre-Production after each MO, you’ll still need a return flow, either manual or through a small custom automation.

https://www.cybrosys.com/blog/how-to-set-up-efficient-putaway-rules-in-odoo-18-inventory

https://www.youtube.com/watch?v=SQJ79Bkp-rY

Hope it helps

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

What happens when you modify the Pre-Production --> Production Rule?

Instead of "Trigger Another Rule" change it to "Take From Stock, if unavailable, Trigger Another Rule":


Wouldn't you rather Odoo look in Pre-Production and take what the forklift driver left there, triggering another Picking only if/when needed?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
626
0
thg 4 17
2739
3
thg 3 15
8643
0
thg 3 15
3933
1
thg 8 24
1709