From 23c354b2628a9e96419fa9b9e9f972157c8537e4 Mon Sep 17 00:00:00 2001 From: Mmequignon Date: Mon, 9 Sep 2024 17:45:30 +0200 Subject: [PATCH] sale_stock_mto_as_mts_orderpoint: fix orderpoint activation condition --- sale_stock_mto_as_mts_orderpoint/models/sale_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sale_stock_mto_as_mts_orderpoint/models/sale_order.py b/sale_stock_mto_as_mts_orderpoint/models/sale_order.py index 48e11586ca8..c75a4dcd3a1 100644 --- a/sale_stock_mto_as_mts_orderpoint/models/sale_order.py +++ b/sale_stock_mto_as_mts_orderpoint/models/sale_order.py @@ -27,7 +27,7 @@ def _run_orderpoints_for_mto_products(self): for delivery_move in delivery_moves: if ( not delivery_move.is_from_mto_route - and mto_route not in line.product_id.route_ids + and mto_route not in delivery_move.product_id.route_ids ): continue orderpoint = line._get_mto_orderpoint(delivery_move.product_id)