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 7f6ed5ef0c2..b3182b337ca 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 if not delivery_move.warehouse_id.mto_as_mts: