Merge pull request #6565 from saurabh6790/warehouse_group_account_rename_fix
[fix] warehouse account rename fix #6526
This commit is contained in:
commit
eb08d632b3
@ -150,6 +150,9 @@ 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):
|
||||||
|
if self.is_group:
|
||||||
|
old_account = self.get_account()
|
||||||
|
else:
|
||||||
old_account = self.get_account(olddn)
|
old_account = self.get_account(olddn)
|
||||||
|
|
||||||
if old_account:
|
if old_account:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user