Skip to Content
Menu
This question has been flagged
2 Replies
1567 Views

I have added a Sub-location "Rental" under Customer, to where I deliver goods that are temporarily stocked there (until the customers give them back).

I have Route management create for this: 4 step Route from Stock to Transit to Customer/Rental.

Additionally I have a standard Delivery Route for Sales from Stock to Transit to Customers.


Now My Problem is when I create a SO and confirm it, odoo creates a Route from Customer/Rental -> Transit -> Customer (2 steps).


How can I prevent odoo from selecting items in a customer location and deliver it to customer location again? I activate/deactive my Route on Product level, so both Routes are activated in products.


What I tried: 

I tried to use different usage for Rental location: Customer, Transit and Internal. But nothing changes. I read somwhere, that odoo sometimes sees the customer location as a production location f.ex. for subcontracting. That's why I tried different usage options.


What works so far is, if manage Route Selection in Sale Order Line, but this is not the best approach, because users will forget to set the route_id.


Any other suggestions?

Avatar
Discard

Have you installed the Rental App? Perhaps it will sort it up for you.

Author

Hi Lars, no I am not using odoo Rental App. I am developing customizations for a customer.

In the current versions of Rental App the rental transfers can be managed with inventory operations. This functionality wasn't available earlier which was limiting.
It might be beneficial to explore the rentals app.

Author Best Answer

Hi Jaideep,

thanks for your response. Seems like I am not fully uptodate about the usage of the supply methods "Take from stock" and "Trigger another rule". 

I thought "take from stock" lets the picking wait for availability in the source location while "Trigger another Rule" initiates the creation of another picking to fullfil the need in the source location. Could you explain a few words more about it?


However, I already startet checking my routes. My Return Route is like follows:
- RENT: Customer/Rental --> Transit (pull, take from stock)

- IN: Transit --> Input (pull, trigger another rule)


My outgoing Route is like follows:

- PICK: Stock --> Packing (pull, take from stock)

- PACK: Packing --> Output (pull, trigger another Rule)

- OUT: Output --> Transit (pull, trigger another Rule)

- Receive: Transit --> Customer/Rental (pull, trigger another Rule)


Can you see what I am configuring wrong? odoo creates 2 Transfers (RENT from Customers/Rental --> Transit and RECEIVE from Transit --> Customer).

Any idea is welcome here.


Thanks in advance! :-)

Avatar
Discard

Hi Riccardo,

From the routes per se, it seems to be configured correctly and difficult to point precisely the issue. My suspect is Transit location, it seems to be central and same for returns, rental as well as regular sales routes. It is likely that the rule sequence Pull from Transit to Customer (sales routes) is lower and gets triggered, with other 2 routes.

You might want to simplify the 3 routes and then validate if routes are triggered as intended. Basic 1 step for each, then 3 step for delivery; 1 step return (excluding the transit location). This might help isolate the issue.

== Yes, your understanding of Supply Method is correct. Take from stock would reserve product only at source location. Trigger another route would create subsequent route. Take from stock (source location), if unavailable trigger another rule is the 3rd option that combines both.
The issue here seems to be the trigger of a different rule and not with reservation.

1. It is still unclear how the rental orders are differentiated from regular sales on the Sale order to trigger the delivery route.

2. How is the return of rental product triggered? By clicking return on the delivery order (Receive operation in your case) would only create a single inventory operation, while you wish to have a 2 steps route with a Pull rule.

Thanks

Best Answer

Since there are 2 routes to fulfil customer requirement (rental & regular sale), how do you differentiate the 2 routes on a sale order? 

Also, I would validate if 

1. the rental location is set as internal location. 

2. If the rules on the rental route are set accurately Pull from stock to transit, pull from transit to rental location (supply method trigger another rule). It is likely that the supply is set to take from stock if unavailable trigger another rule. With the product being available at the customer location it is probably reserving and moving to transit

Avatar
Discard
Author

I can confirm that rental location is set as internal location. And yes, you are right, as soon as the equipment is delivered, the items are available at the customer/Rental location. That's might be a good reason why this location is for odoo the nearest option to deliver during a Sale Order. For now, I use the workaround to force a route_id for sale delivery (Stock --> Customer) on sale.order.line, but that doens't feel the correct way.
I am still wondering how odoo decides to use a location as Removal location. Somehow I want odoo to tell, that only stock an appropriate removal location, and not the customer location.

As default Odoo uses Partners/Customers as customer location to trigger delivery routes (Stock -> customer). It is not clear how your configuration is for the Partners/Customers/rental to be the default for deliveries (Customer -> Rental).

Also, how is the rental return route triggered?

Related Posts Replies Views Activity
3
Jun 22
2600
1
Feb 16
6683
1
Nov 23
1722
1
May 25
916
1
May 25
888