Skip to Content
Menu
This question has been flagged
1 Reply
1827 Views

Hello Community!

I need help configuring the following route.

Use case:

  • Warehouse1 is where products are assembled.
  • Warehouse2 is where products are sold.

A salesperson enters an order for product x and select Warehouse1 as the warehouse, the customer address is "pickup from Warehouse2".

Ideally Odoo would create the following pickings:

  • warehouse2 stock to virtual location/customer 
  • warehouse1 stock to warehouse2 stock (inter-warehouse transfer)

The way our current route is defined, Odoo creates the following picking:

  • warehouse1 stock to virtual location/customer

The delivery split mentions "pickup from Warehouse2" so our storeperson knows to ship the product to Warehouse2.
This completes the delivery as far as Odoo is concerned.

Yet we're missing a picking from WH2 to customer.


Any recommendation on how to configure this (even with some custom code) would be much appreciated.

Thanks!

Raf 



Avatar
Discard
Best Answer

You can modify the existing route in Odoo to add an additional step that creates a second picking from Warehouse2 to the customer. To do this, you can follow these steps:

  1. Create a new Stock Location for Warehouse2, for example "Warehouse2 Stock".

  2. Modify the existing route to include the new Warehouse2 Stock location. The route should now have the following steps:

    a. Warehouse1 Stock to Warehouse2 Stock (Inter-warehouse transfer) b. Warehouse2 Stock to Virtual Location/Customer

  3. Create a new Delivery Method for Warehouse2 and configure it to use the modified route.

  4. Update the Sales Order in question to use the new Delivery Method for Warehouse2.

This should create two pickings, one from Warehouse1 to Warehouse2 and another from Warehouse2 to the customer, as you desired.

Note: If you need custom code to implement this, it can be done with a custom module that extends the existing delivery methods in Odoo.

Avatar
Discard

I think by "Delivery Method", you meant "Operation Type" for Delivery.

Author

Thanks for your post!
Can you please expand on step 4?
On a sales order I cannot see where to select an operation type/delivery method.

If I understand correctly , the operation type is defined on the rule which is defined on the route.

That is correct, you can only select a route from sale order line or a delivery WH for a SO.

Since you have 2 WH, Odoo creates 2 delivery routes by default, WH1 to customer and WH2 to customer.

1. If your need is to always deliver from WH2, you should archive WH1 to customer route and not have the need to select a WH on SO
2. Modify WH2 to customer route to include the 2nd rule, ie WH1 to WH2.

Author

Thanks for all the advice. I'll experiment further!

Related Posts Replies Views Activity
0
Jul 24
6
0
Jun 24
270
1
Apr 24
948
0
Mar 24
235
2
Jan 24
331