Show DocType Labels instead of DocType names in Customize Form View

This commit is contained in:
Anand Doshi 2012-01-25 17:15:46 +05:30
parent 04a115e771
commit 46848a48fe
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,12 @@
import webnotes
def execute():
"""
* Change option of doclayer's doc_type field
* Reload doclayer
"""
webnotes.conn.sql("""
UPDATE `tabDocField` SET options=NULL
WHERE parent='DocLayer' AND fieldname='doc_type'
""")
from webnotes.modules.module_manager import reload_doc
reload_doc('core', 'doctype', 'doclayer')

View File

@ -40,4 +40,9 @@ patch_list = [
'patch_file': 'customer_address_contact_patch',
'description': "Install Customer Address Contact report and run patches regarding primary address and contact"
},
{
'patch_module': 'patches.jan_mar_2012',
'patch_file': 'doclabel_in_doclayer',
'description': "Show DocType Labels instead of DocType names in Customize Form View"
},
]