From 147140ebd140bbd945ba12079bc099ac1c2f3e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 9 Feb 2023 11:06:42 +0100 Subject: [PATCH] Reload screen after creating purchase from purchase request This way the user see that the selected purchase requests have been purchased as they are no longer in the draft tab. --- modules/purchase_request/purchase_request.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/purchase_request/purchase_request.py b/modules/purchase_request/purchase_request.py index 399f1cdda3..5deada4452 100644 --- a/modules/purchase_request/purchase_request.py +++ b/modules/purchase_request/purchase_request.py @@ -556,6 +556,9 @@ class CreatePurchase(Wizard): compute_qty(r.uom, r.quantity, unit, round=False) for r in requests) + def end(self): + return 'reload' + class HandlePurchaseCancellationException(Wizard): 'Handle Purchase Cancellation Exception'