From 4a85a4900ffad60ea3d5c633aa4ef9da4ea75020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 27 Apr 2022 18:29:56 +0200 Subject: [PATCH] Search only waiting state when searching on partially assigned issue11443 review407391002 (grafted from a183104351e9c48eba5deb652208c12b5bb45ac9) --HG-- branch : 6.0 --- shipment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shipment.py b/shipment.py index e86932d6be..9067c3167f 100644 --- a/shipment.py +++ b/shipment.py @@ -112,7 +112,7 @@ class ShipmentAssignMixin(ShipmentMixin): ('state', '=', 'assigned'), ('assignation_required', '=', True), ]), - ('state', '!=', 'assigned'), + ('state', '=', 'waiting'), ] else: return []