[fix] Company's abbreviation change will not update the warehouse (#8685)

This commit is contained in:
rohitwaghchaure 2017-05-04 16:12:29 +05:30 committed by Nabin Hait
parent c9bfb64cd9
commit 6324987c15

View File

@ -282,7 +282,7 @@ def replace_abbr(company, old, new):
if len(parts) == 1 or parts[1].lower() == old.lower(): if len(parts) == 1 or parts[1].lower() == old.lower():
frappe.rename_doc(dt, d[0], parts[0] + " - " + new) frappe.rename_doc(dt, d[0], parts[0] + " - " + new)
for dt in ["Account", "Cost Center", "Warehouse"]: for dt in ["Warehouse", "Account", "Cost Center"]:
_rename_record(dt) _rename_record(dt)
frappe.db.commit() frappe.db.commit()