feat: also rename default groups after setup wizard completion

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ali 2026-04-06 15:33:23 +04:00
parent 5ea710d77c
commit 72f9973000
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@ SUPPLIER_GROUP_RENAMES = {
}
def rename_default_groups():
def rename_default_groups(args=None):
for old_name, new_name in ITEM_GROUP_RENAMES.items():
_rename_doc("Item Group", old_name, new_name)

View File

@ -88,6 +88,7 @@ setup_wizard_complete = [
"jey_erp.setup.setup_wizard_handler.create_default_salary_components",
"jey_erp.setup.setup_wizard_handler.create_default_leave_types",
"jey_erp.setup.setup_wizard_handler.create_default_company_accounts",
"jey_erp.custom.rename_default_groups.rename_default_groups",
]
after_migrate = "jey_erp.hooks.after_migrate_combined"