old_parent field in account is linked to Account now, it will fix account renaming bug
This commit is contained in:
parent
c4e579c901
commit
f82b1cc4bd
@ -455,7 +455,8 @@
|
|||||||
'description': "Don't delete this field at any cost",
|
'description': "Don't delete this field at any cost",
|
||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldname': 'old_parent',
|
'fieldname': 'old_parent',
|
||||||
'fieldtype': 'Data',
|
'fieldtype': 'Link',
|
||||||
|
'options': 'Account',
|
||||||
'hidden': 1,
|
'hidden': 1,
|
||||||
'idx': 24,
|
'idx': 24,
|
||||||
'label': 'Old Parent',
|
'label': 'Old Parent',
|
||||||
@ -517,4 +518,4 @@
|
|||||||
'oldfieldtype': 'Small Text',
|
'oldfieldtype': 'Small Text',
|
||||||
'permlevel': 1
|
'permlevel': 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# REMEMBER to update this
|
# REMEMBER to update this
|
||||||
# ========================
|
# ========================
|
||||||
|
|
||||||
last_patch = 334
|
last_patch = 335
|
||||||
|
|
||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
|
|
||||||
@ -1345,3 +1345,5 @@ def execute(patch_no):
|
|||||||
p.add_permission('Print Format', 'System Manager', 0, read = 1, write=1, create=1)
|
p.add_permission('Print Format', 'System Manager', 0, read = 1, write=1, create=1)
|
||||||
elif patch_no == 334:
|
elif patch_no == 334:
|
||||||
reload_doc('knowledge_base', 'doctype', 'answer')
|
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'")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user