From a61814d46e1ad04f50bb4f38cd63b0d253ec18bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 10 Feb 2026 19:22:32 +0100 Subject: [PATCH] Assign shipment before pick in Shopify test scenario --- modules/web_shop_shopify/tests/scenario_web_shop_shopify.rst | 2 ++ .../tests/scenario_web_shop_shopify_product_kit.rst | 3 +++ 2 files changed, 5 insertions(+) diff --git a/modules/web_shop_shopify/tests/scenario_web_shop_shopify.rst b/modules/web_shop_shopify/tests/scenario_web_shop_shopify.rst index 5ca9503f3a..2dcf67403b 100644 --- a/modules/web_shop_shopify/tests/scenario_web_shop_shopify.rst +++ b/modules/web_shop_shopify/tests/scenario_web_shop_shopify.rst @@ -622,6 +622,7 @@ Make a partial shipment:: >>> shipment, = sale.shipments >>> move, = [m for m in shipment.inventory_moves if m.product == variant1] >>> move.quantity = 3 + >>> shipment.click('assign_force') >>> shipment.click('pick') >>> shipment.click('pack') >>> shipment.click('do') @@ -643,6 +644,7 @@ Make a partial shipment:: Ship and cancel remaining shipment:: >>> shipment, = [s for s in sale.shipments if s.state != 'done'] + >>> shipment.click('assign_force') >>> shipment.click('pick') >>> shipment.click('pack') >>> shipment.click('ship') diff --git a/modules/web_shop_shopify/tests/scenario_web_shop_shopify_product_kit.rst b/modules/web_shop_shopify/tests/scenario_web_shop_shopify_product_kit.rst index 4f22c55f6b..42b33d15c7 100644 --- a/modules/web_shop_shopify/tests/scenario_web_shop_shopify_product_kit.rst +++ b/modules/web_shop_shopify/tests/scenario_web_shop_shopify_product_kit.rst @@ -225,6 +225,7 @@ Make a partial shipment of components:: ... move.quantity = 4 ... else: ... move.quantity = 0 + >>> shipment.click('assign_force') >>> shipment.click('pick') >>> shipment.click('pack') >>> shipment.click('do') @@ -248,6 +249,7 @@ Make a partial shipment for a single component:: ... move.quantity = 0 ... else: ... move.quantity = 10 + >>> shipment.click('assign_force') >>> shipment.click('pick') >>> shipment.click('pack') >>> shipment.click('do') @@ -266,6 +268,7 @@ Ship remaining:: >>> sale.reload() >>> _, _, shipment = sale.shipments + >>> shipment.click('assign_force') >>> shipment.click('pick') >>> shipment.click('pack') >>> shipment.click('do')