From 428aedc29c599c076a53c2c083ad8ef3a89b05c5 Mon Sep 17 00:00:00 2001 From: venkat102 Date: Thu, 6 Mar 2025 18:33:53 +0530 Subject: [PATCH] fix(account): update account number from parent company (cherry picked from commit 4a4894bc01c132ca46572591da6cd8db31e9ec30) --- erpnext/accounts/doctype/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/account/account.py b/erpnext/accounts/doctype/account/account.py index 4098084a802..2f1ddb2f96f 100644 --- a/erpnext/accounts/doctype/account/account.py +++ b/erpnext/accounts/doctype/account/account.py @@ -502,7 +502,7 @@ def update_account_number(name, account_name, account_number=None, from_descenda "name", ) - if old_name: + if old_name and not from_descendant: # same account in parent company exists allow_child_account_creation = _("Allow Account Creation Against Child Company")