From c68e0450144e9da8f116cc3dcbbce80d83484e97 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 5 Oct 2011 17:01:16 +0530 Subject: [PATCH] deleted duplicate button from QA inspection report --- erpnext/patches/patch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erpnext/patches/patch.py b/erpnext/patches/patch.py index f8bc45c7f9..aebe6e998b 100644 --- a/erpnext/patches/patch.py +++ b/erpnext/patches/patch.py @@ -1,7 +1,7 @@ # 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.save() 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")