Patch to change allocated_to options to 'Profile'

This commit is contained in:
Anand Doshi
2012-01-19 12:32:15 +05:30
parent 9c6db1482d
commit 5f72836f11
3 changed files with 33 additions and 60 deletions

View File

@@ -0,0 +1,14 @@
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'
""")
from webnotes.modules.module_manager import reload_doc
reload_doc('support', 'doctype', 'customer_issue')