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 @@
-
-
+
+