mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-03 21:48:27 +00:00
old_parent field is Link to parent dt now in account, cost center, item group, cust group, territory. It will fix renaming bug
This commit is contained in:
@@ -1346,4 +1346,5 @@ def execute(patch_no):
|
||||
elif patch_no == 334:
|
||||
reload_doc('knowledge_base', 'doctype', 'answer')
|
||||
elif patch_no == 335:
|
||||
sql("update `tabDocField` set fieldtype = 'Link', options = 'Account' where fieldname = 'old_parent' and parent = 'Account'")
|
||||
for dt in ['Account', 'Cost Center', 'Territory', 'Item Group', 'Customer Group']:
|
||||
sql("update `tabDocField` set fieldtype = 'Link', options = %s where fieldname = 'old_parent' and parent = %s", (dt, dt))
|
||||
|
||||
Reference in New Issue
Block a user