Add test for move exception state

issue11313
review399111002
This commit is contained in:
Sergi Almacellas Abellana committed 2022-03-21 16:05:59 +01:00
1 parent 1a1d25d729
commit 4ba1d89c0e
2 files changed
+6

No files matched your search

+3
View File
@@ -277,3 +277,6 @@ Handle shipment exception::
>>> len(purchase.moves)
6
>>> backorder.reload()
>>> backorder.purchase_exception_state
'recreated'
+3
View File
@@ -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']