From 4ba1d89c0e4a0a1aa06a01f044b78395d871e0cd Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Mon, 21 Mar 2022 16:05:59 +0100 Subject: [PATCH] Add test for move exception state issue11313 review399111002 --- tests/scenario_product_kit_purchase.rst | 3 +++ tests/scenario_product_kit_sale.rst | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tests/scenario_product_kit_purchase.rst b/tests/scenario_product_kit_purchase.rst index 27c4db88f8..25eb3d483c 100644 --- a/tests/scenario_product_kit_purchase.rst +++ b/tests/scenario_product_kit_purchase.rst @@ -277,3 +277,6 @@ Handle shipment exception:: >>> len(purchase.moves) 6 + >>> backorder.reload() + >>> backorder.purchase_exception_state + 'recreated' diff --git a/tests/scenario_product_kit_sale.rst b/tests/scenario_product_kit_sale.rst index 705c507751..1279ca7ca2 100644 --- a/tests/scenario_product_kit_sale.rst +++ b/tests/scenario_product_kit_sale.rst @@ -273,3 +273,6 @@ Handle shipment exception:: >>> _, _, shipment = sale.shipments >>> len(shipment.outgoing_moves) 1 + >>> backorder.reload() + >>> list(sorted(m.sale_exception_state for m in backorder.outgoing_moves)) + ['ignored', 'recreated']