From 36c76c40350cbc030cc2b27a84c1bfebbcad67c3 Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Fri, 25 Feb 2022 17:15:57 +0530 Subject: [PATCH] fix: Failing setup wizard test --- erpnext/hr/doctype/department/department.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/hr/doctype/department/department.py b/erpnext/hr/doctype/department/department.py index ed0bfcf0d5..ecc025a6e3 100644 --- a/erpnext/hr/doctype/department/department.py +++ b/erpnext/hr/doctype/department/department.py @@ -32,7 +32,7 @@ class Department(NestedSet): 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):