diff --git a/erpnext/patches/jan_mar_2012/allocated_to_profile.py b/erpnext/patches/jan_mar_2012/allocated_to_profile.py index 1d9e1aa1d3..ac95c2bac1 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')