mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 11:39:18 +00:00
[fix] warehouse account rename fix #6526
This commit is contained in:
@@ -150,7 +150,10 @@ class Warehouse(NestedSet):
|
|||||||
return new_warehouse
|
return new_warehouse
|
||||||
|
|
||||||
def rename_account_for(self, olddn, newdn, merge):
|
def rename_account_for(self, olddn, newdn, merge):
|
||||||
old_account = self.get_account(olddn)
|
if self.is_group:
|
||||||
|
old_account = self.get_account()
|
||||||
|
else:
|
||||||
|
old_account = self.get_account(olddn)
|
||||||
|
|
||||||
if old_account:
|
if old_account:
|
||||||
new_account = None
|
new_account = None
|
||||||
|
|||||||
Reference in New Issue
Block a user