remove extra buttons labelled Make Maintenance Visit

This commit is contained in:
Anand Doshi 2012-01-19 12:41:54 +05:30
parent 5f72836f11
commit f343a8bc75

View File

@ -10,5 +10,11 @@ def execute():
WHERE fieldname='allocated_to' 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 from webnotes.modules.module_manager import reload_doc
reload_doc('support', 'doctype', 'customer_issue') reload_doc('support', 'doctype', 'customer_issue')