コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
1001 ビュー

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!


アバター
破棄
著作者 最善の回答

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.

アバター
破棄

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?

著作者

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.

最善の回答

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.

アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
10月 22
3616
3
6月 22
1918
1
2月 17
3734
1
7月 24
4698
2
12月 20
7365