콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
2791 화면

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
4474
3
6월 22
2859
1
2월 17
4412
1
7월 24
5833
2
12월 20
8334