fix: Failing setup wizard test

This commit is contained in:
Deepesh Garg 2022-02-25 17:15:57 +05:30
parent fe2ced7bee
commit 36c76c4035

View File

@ -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):