fix: partial rename while replacing abbreviation (#27065)
This commit is contained in:
parent
81b4590479
commit
60675379c2
@ -423,11 +423,11 @@ def replace_abbr(company, old, new):
|
||||
_rename_record(d)
|
||||
try:
|
||||
frappe.db.auto_commit_on_many_writes = 1
|
||||
frappe.db.set_value("Company", company, "abbr", 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()
|
||||
frappe.db.set_value("Company", company, "abbr", new)
|
||||
|
||||
except Exception:
|
||||
frappe.log_error(title=_('Abbreviation Rename Error'))
|
||||
|
Loading…
Reference in New Issue
Block a user