From 9368485594f3f42f201be768aa2c79a21ad72a5d Mon Sep 17 00:00:00 2001 From: Sanket322 Date: Wed, 25 Dec 2024 15:22:53 +0530 Subject: [PATCH] fix: ignore duplicate while creating default templates --- erpnext/setup/setup_wizard/operations/taxes_setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/setup/setup_wizard/operations/taxes_setup.py b/erpnext/setup/setup_wizard/operations/taxes_setup.py index 6561f386c555..f8cd61d50ea0 100644 --- a/erpnext/setup/setup_wizard/operations/taxes_setup.py +++ b/erpnext/setup/setup_wizard/operations/taxes_setup.py @@ -292,7 +292,7 @@ def get_or_create_tax_group(company_name, root_type): tax_group_account.flags.ignore_links = True tax_group_account.flags.ignore_validate = True - tax_group_account.insert(ignore_permissions=True) + tax_group_account.insert(ignore_permissions=True, ignore_if_duplicate=True) tax_group_name = tax_group_account.name