From aebb160e76b2232914ddb0b9d4addbd896a05b83 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Thu, 17 Sep 2026 22:22:16 +0530 Subject: [PATCH] feat: mark update_serial_batch_entries patch as never skippable (#59147) --- erpnext/hooks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/hooks.py b/erpnext/hooks.py index ddd82f29701..dd717dd7631 100644 --- a/erpnext/hooks.py +++ b/erpnext/hooks.py @@ -87,6 +87,9 @@ after_install = "erpnext.setup.install.after_install" after_app_install = "erpnext.setup.install.after_app_install" after_app_uninstall = "erpnext.setup.install.after_app_uninstall" +# patches that must stop the migration when they fail, even with `bench migrate --skip-failing` +never_skip_patches = ["erpnext.patches.v16_0.update_serial_batch_entries"] + boot_session = "erpnext.startup.boot.boot_session" notification_config = "erpnext.startup.notifications.get_notification_config" get_help_messages = "erpnext.utilities.activation.get_help_messages"