From f343a8bc7592ab9befb5c03ccd09db61439e3f76 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 19 Jan 2012 12:41:54 +0530 Subject: [PATCH] remove extra buttons labelled Make Maintenance Visit --- erpnext/patches/jan_mar_2012/allocated_to_profile.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/erpnext/patches/jan_mar_2012/allocated_to_profile.py b/erpnext/patches/jan_mar_2012/allocated_to_profile.py index 1d9e1aa1d3b..ac95c2bac19 100644 --- a/erpnext/patches/jan_mar_2012/allocated_to_profile.py +++ b/erpnext/patches/jan_mar_2012/allocated_to_profile.py @@ -10,5 +10,11 @@ def execute(): WHERE fieldname='allocated_to' """) + webnotes.conn.sql(""" + DELETE from `tabDocField` + WHERE parent='Customer Issue' + AND label='Make Maintenance Visit' + """) + from webnotes.modules.module_manager import reload_doc reload_doc('support', 'doctype', 'customer_issue')