Show DocType Labels instead of DocType names in Customize Form View
This commit is contained in:
12
erpnext/patches/jan_mar_2012/doclabel_in_doclayer.py
Normal file
12
erpnext/patches/jan_mar_2012/doclabel_in_doclayer.py
Normal 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')
|
||||||
@@ -40,4 +40,9 @@ patch_list = [
|
|||||||
'patch_file': 'customer_address_contact_patch',
|
'patch_file': 'customer_address_contact_patch',
|
||||||
'description': "Install Customer Address Contact report and run patches regarding primary address and contact"
|
'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"
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user