Company rename abbr to consider more DocTypes

This commit is contained in:
Saif 2018-11-26 19:56:13 +05:00 committed by GitHub
parent 64b4d98778
commit 6a9d9d76ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -363,7 +363,8 @@ def replace_abbr(company, old, new):
for d in doc:
_rename_record(d)
for dt in ["Warehouse", "Account", "Cost Center"]:
for dt in ["Warehouse", "Account", "Cost Center", "Department", "Location",
"Sales Taxes and Charges Template", "Purchase Taxes and Charges Template"]:
_rename_records(dt)
frappe.db.commit()