fix: Failing setup wizard test
diff --git a/erpnext/hr/doctype/department/department.py b/erpnext/hr/doctype/department/department.py
index ed0bfcf..ecc025a 100644
--- a/erpnext/hr/doctype/department/department.py
+++ b/erpnext/hr/doctype/department/department.py
@@ -32,7 +32,7 @@
 		return new
 
 	def on_update(self):
-		if not frappe.local.flags.ignore_update_nsm:
+		if not frappe.local.flags.ignore_update_nsm or frappe.flags.in_setup_wizard:
 			super(Department, self).on_update()
 
 	def on_trash(self):