From e8adf18a55a9a3f7c54f79caa9459954f24803a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 16 Aug 2026 23:51:22 +0200 Subject: [PATCH] Do not rely on shipments order from sale in product kit test scenario Closes #15016 (grafted from 58d67088854ac415c961f6c265da3b6e28ce1c37) --HG-- branch : 8.0 --- modules/product_kit/tests/scenario_product_kit_sale.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/product_kit/tests/scenario_product_kit_sale.rst b/modules/product_kit/tests/scenario_product_kit_sale.rst index 5be7cc523b..37057deab9 100644 --- a/modules/product_kit/tests/scenario_product_kit_sale.rst +++ b/modules/product_kit/tests/scenario_product_kit_sale.rst @@ -272,7 +272,7 @@ Handle shipment exception:: ... [('product', '=', product1.id)])) >>> shipment_exception.execute('handle') - >>> _, _, shipment = sale.shipments + >>> shipment, = [s for s in sale.shipments if s.state == 'waiting'] >>> len(shipment.outgoing_moves) 1 >>> backorder.reload()