fix: Replace company abbr

This commit is contained in:
Nabin Hait
2020-07-14 20:46:25 +05:30
parent ea1662c15b
commit 395f44c8b7
2 changed files with 0 additions and 4 deletions

View File

@@ -202,8 +202,6 @@ cur_frm.cscript.change_abbr = function() {
if(r.exc) {
frappe.msgprint(__("There were errors."));
return;
} else {
cur_frm.set_value("abbr", args.new_abbr);
}
dialog.hide();
cur_frm.refresh();

View File

@@ -400,8 +400,6 @@ def replace_abbr(company, old, new):
for dt in ["Warehouse", "Account", "Cost Center", "Department",
"Sales Taxes and Charges Template", "Purchase Taxes and Charges Template"]:
_rename_records(dt)
frappe.db.commit()
def get_name_with_abbr(name, company):
company_abbr = frappe.get_cached_value('Company', company, "abbr")