From 6324987c15e01151d8abd151129f91639fe9c044 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Thu, 4 May 2017 16:12:29 +0530 Subject: [PATCH] [fix] Company's abbreviation change will not update the warehouse (#8685) --- erpnext/setup/doctype/company/company.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/setup/doctype/company/company.py b/erpnext/setup/doctype/company/company.py index c09255d506..cc5e65d881 100644 --- a/erpnext/setup/doctype/company/company.py +++ b/erpnext/setup/doctype/company/company.py @@ -282,7 +282,7 @@ def replace_abbr(company, old, new): if len(parts) == 1 or parts[1].lower() == old.lower(): 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) frappe.db.commit()