2012-01-19 07:02:15 +00:00
|
|
|
def execute():
|
|
|
|
"""
|
|
|
|
Changes allocated_to option to Profile in
|
|
|
|
DocType Customer Issue
|
|
|
|
"""
|
|
|
|
import webnotes
|
|
|
|
webnotes.conn.sql("""
|
|
|
|
UPDATE `tabDocField`
|
|
|
|
SET options='Profile'
|
|
|
|
WHERE fieldname='allocated_to'
|
|
|
|
""")
|
|
|
|
|
2012-01-19 07:11:54 +00:00
|
|
|
webnotes.conn.sql("""
|
|
|
|
DELETE from `tabDocField`
|
|
|
|
WHERE parent='Customer Issue'
|
|
|
|
AND label='Make Maintenance Visit'
|
|
|
|
""")
|
|
|
|
|
2012-01-19 07:02:15 +00:00
|
|
|
from webnotes.modules.module_manager import reload_doc
|
|
|
|
reload_doc('support', 'doctype', 'customer_issue')
|