You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Odoo SaaS-14中如何通过产品表单Request Procurement按钮实现WH2至WH1库存调拨?

Hey there, let's break down how to set up this exact procurement flow you're looking for in Odoo SaaS-14. I've walked through similar setups before, so here's a step-by-step guide to make it work:

Step-by-Step Setup for WH2 → Transit → WH1 Procurement Flow

1. First, Create a Transit Location

You'll need a dedicated transit location to act as the middle step in your transfer:

  • Navigate to Inventory > Configuration > Locations
  • Click Create to make a new location (e.g., name it WH Transit)
  • Set the Location Type to Transit Location, and set its parent to Virtual Locations
  • Save the location

2. Build Your Custom Route (WH2 → WH1 via Transit)

This route will tie together all the rules for your transfer flow:

  • Go to Inventory > Configuration > Routes
  • Click Create, name it something clear like WH2 to WH1 via Transit
  • Check the Active box, and choose whether to apply it to all products or specific ones (via Apply to All Products or leave it unchecked to assign per product later)
  • Save the route

3. Add a Procurement Rule to Trigger WH2 → Transit Delivery

This rule tells Odoo to generate a delivery order from WH2 to the transit location when a procurement request is made for WH1:

  • Open your new route, switch to the Procurement Rules tab, then click Create
  • Configure these key fields:
    • Location: Select WH1 (this is the location where you're requesting stock)
    • Location Procurement: Select WH2 (the source of the stock)
    • Route: Link it to your WH2 to WH1 via Transit route
    • Action: Choose Move To Another Location
    • Destination Location: Pick the WH Transit location you created earlier
    • Propagate: Check this box (critical for triggering the subsequent push rule automatically)
  • Save the procurement rule

4. Add a Push Rule for Transit → WH1 Transfer

Once the WH2→Transit delivery is confirmed, this rule will auto-trigger the final transfer to WH1:

  • Stay in your route, switch to the Push Rules tab, click Create
  • Configure these fields:
    • Location Source: Select WH Transit
    • Location Destination: Select WH1
    • Route: Link to the same WH2 to WH1 via Transit route
    • Operation: Choose Transfer (match this to your standard inventory transfer operation type)
    • Trigger: Select After Operation (this ensures it fires once the transit delivery is validated)
  • Save the push rule

5. Enable the Route on Your Target Product

Make sure the product you want to transfer uses this route:

  • Open the product form, go to the Inventory tab
  • In the Routes field, add your WH2 to WH1 via Transit route
  • Save the product

6. Test the "Request Procurement" Button

Now let's verify the flow works:

  • Open the product form, click the Request Procurement button
  • In the pop-up window, set Location to WH1 and enter the quantity you want to transfer
  • Confirm the procurement request—Odoo will generate a delivery order from WH2 to WH Transit
  • Open that delivery order, click Validate to complete the stock issue from WH2
  • Immediately, you'll see a new transfer order generated from WH Transit to WH1
  • Validate that final transfer, and your stock will be moved from WH2 to WH1 through transit as expected

Quick Troubleshooting Tips

  • If the Transit→WH1 transfer doesn't auto-generate: Double-check that Propagate is enabled on your procurement rule, and the push rule's Trigger is set to After Operation
  • If no delivery order is created from procurement request: Ensure the product is linked to your custom route, and your procurement rule's Location (WH1) and Location Procurement (WH2) aren't reversed
  • If the procurement request is stuck waiting: Confirm WH2 has enough on-hand stock to fulfill the request

内容的提问来源于stack exchange,提问作者flyingL123

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.21 04:34:27