Skip to Content
Menu
This question has been flagged
3 Replies
724 Views

Hello,

I'm encountering an issue after migrating from Odoo 16 to Odoo 18. I have a location set up as Partners/Customers/Rented Out, and I need to deliver products to this location when the Route on the sales order line is set to "Rental." This process worked perfectly in Odoo 16, but since the migration, it no longer functions as expected.







The products remain in the Partners/Customers location and never reach the final destination. I noticed there is a Destination Route, but the products do not seem to follow it.

Can anyone help me understand why this is happening?

Thanks!


Avatar
Discard
Author Best Answer

Thank you for your response.

You are right; even with the 'destination location origin from rule' set to true, the route is not triggered. The destination location is instead taken from the contact's customer location ('partner.property_stock_customer'), which can be found under Contact > Sales & Purchase > Inventory > Customer Location.

I’ve found an alternative solution by creating an Automation Rule to change the Destination locations based on specific conditions.

Avatar
Discard

Yes, an automated action to change destination location on delivery order line is also a solution. The rental location is a sub location of partner/customer.

In 18, it is also possible to enable inventory operations for rental orders. If you are using rental app, this might also be a default solution available.

Any insights into what solution was used in V16 prior to migration?

Author

In Odoo 16, it was working with a push route from Stock to Partners/Customers/Rented out, activated on Sales order lines. It's not super clean but it was working and was implemented like that by Odoo's team.
We cannot use rental for our use case are we don't have end date and Odoo currently doesn't support that.

Thanks for validating, yes a push rule is feasible.

Best Answer

1. For the destination rule you would need the 'destination location origin from rule' to be true (checked). That would ensure the destination location as defined in the route would be picked over the destination defined in the operation type.


Notwithstanding, I don't believe your route would be triggered. An SO creates a need in Partner/customer location and not in partner/customer/rental location.


Maybe a route defined as below would trigger and meet your requirement -


Route (Renting BE) - Pull from WH/Stock to Partner/customer, create a new operation type 'Rental deliveries' with source as WH/Stock and destination as Partner/customer/rental. Ensure the 'destination location origin from rule' is unchecked.


The need is created in Partner/customer with stock to be pulled from WH/Stock, the 'rental delivery' operation created with source WH/Stock and destination Partner/customer/rental.


The other ways maybe to accomplish might be with


a) push rule selectable on SO line (push from Partner/customer to partner/customer/rental)

b) Create a contact for each customer (specifically for rental), change the customer location on this contact to be Partner/customer/rental (On the sales & Purchase tab)


Would be curious to learn how this might have worked in V16 as the underlying principles doesn't seem to have changed.

Avatar
Discard
Best Answer

Hi,

Please set the route on a product, go to Inventory ‣ Products ‣ Products and select the desired product. Then, go to the Inventory tab and under the Operations section, select the Routes.


For more details, Please refer to the following documentation for configuring routes  & rules in Odoo 18.

https://www.odoo.com/documentation/18.0/applications/inventory_and_mrp/inventory/shipping_receiving/daily_operations/use_routes.html#:~:text=To%20set%20a%20route%20on,for%20the%20route%20to%20work.


Hope it helps

Avatar
Discard
Related Posts Replies Views Activity
1
Oct 22
3503
3
Jun 22
1822
1
Feb 17
3606
1
Jul 24
4518
2
Dec 20
7262