From 4a4894bc01c132ca46572591da6cd8db31e9ec30 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 --- 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 d9f42db1429..c49cced4c2e 100644 --- a/erpnext/accounts/doctype/account/account.py +++ b/erpnext/accounts/doctype/account/account.py @@ -499,7 +499,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")