deleted duplicate button from QA inspection report
This commit is contained in:
parent
5630049d2a
commit
c68e045014
@ -1,7 +1,7 @@
|
|||||||
# REMEMBER to update this
|
# REMEMBER to update this
|
||||||
# ========================
|
# ========================
|
||||||
|
|
||||||
last_patch = 378
|
last_patch = 379
|
||||||
|
|
||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
|
|
||||||
@ -431,3 +431,6 @@ def execute(patch_no):
|
|||||||
m.doc.fields[d[0]] = 1
|
m.doc.fields[d[0]] = 1
|
||||||
m.doc.save()
|
m.doc.save()
|
||||||
m.validate()
|
m.validate()
|
||||||
|
elif patch_no == 379:
|
||||||
|
if sql("select count(name) from `tabDocField` where label = 'Get Specification Details' and parent = 'QA Inspection Report' and fieldtype = 'Button'")[0][0] > 1:
|
||||||
|
sql("delete from `tabDocField` where label = 'Get Specification Details' and parent = 'QA Inspection Report' and fieldtype = 'Button' limit 1")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user