From 18dc17a3bb4e85b8ae0245036368083cd290afd0 Mon Sep 17 00:00:00 2001 From: Marc Durepos Date: Wed, 3 Sep 2025 16:03:35 -0400 Subject: [PATCH] Fix UI issues for stock_quant_reserved_fix --- .../wizards/stock_quant_reserved_fix_wizard.py | 2 ++ .../wizards/stock_quant_reserved_fix_wizard_views.xml | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/stock_quant_reserved_fix/wizards/stock_quant_reserved_fix_wizard.py b/stock_quant_reserved_fix/wizards/stock_quant_reserved_fix_wizard.py index f446fac..a49103d 100644 --- a/stock_quant_reserved_fix/wizards/stock_quant_reserved_fix_wizard.py +++ b/stock_quant_reserved_fix/wizards/stock_quant_reserved_fix_wizard.py @@ -85,6 +85,7 @@ class StockQuantReservedFixWizard(models.TransientModel): "Successfully updated reserved quantity to %.2f for %d stock quant(s)." ) % (self.reserved_quantity, updated_count) + # Close the wizard and show success notification return { "type": "ir.actions.client", "tag": "display_notification", @@ -93,5 +94,6 @@ class StockQuantReservedFixWizard(models.TransientModel): "message": message, "type": "success", "sticky": False, + "next": {"type": "ir.actions.act_window_close"}, }, } diff --git a/stock_quant_reserved_fix/wizards/stock_quant_reserved_fix_wizard_views.xml b/stock_quant_reserved_fix/wizards/stock_quant_reserved_fix_wizard_views.xml index 13046af..cd1c8ef 100644 --- a/stock_quant_reserved_fix/wizards/stock_quant_reserved_fix_wizard_views.xml +++ b/stock_quant_reserved_fix/wizards/stock_quant_reserved_fix_wizard_views.xml @@ -19,7 +19,8 @@ - + + @@ -32,8 +33,8 @@ - - + +