From 3b9e864dec2c254e85a813dcc2fc4ab38cbc4c38 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 11 Nov 2013 18:01:37 +0530 Subject: [PATCH] [ui cleanup] [minor] --- patches/1311/p01_cleanup.py | 3 +++ patches/october_2013/p05_server_custom_script_to_file.py | 2 +- patches/patch_list.py | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/patches/1311/p01_cleanup.py b/patches/1311/p01_cleanup.py index cf7ae6e6ce..c6d4c01b24 100644 --- a/patches/1311/p01_cleanup.py +++ b/patches/1311/p01_cleanup.py @@ -1,6 +1,9 @@ import webnotes def execute(): + webnotes.reload_doc("stock", "doctype", "material_request") + webnotes.reload_doc("buying", "doctype", "purchase_order") + webnotes.reload_doc("selling", "doctype", "lead") from core.doctype.custom_field.custom_field import create_custom_field_if_values_exist create_custom_field_if_values_exist("Material Request", {"fieldtype":"Text", "fieldname":"remark", "label":"Remarks","insert_after":"Fiscal Year"}) diff --git a/patches/october_2013/p05_server_custom_script_to_file.py b/patches/october_2013/p05_server_custom_script_to_file.py index b1d4f2116d..222cfea0ab 100644 --- a/patches/october_2013/p05_server_custom_script_to_file.py +++ b/patches/october_2013/p05_server_custom_script_to_file.py @@ -20,7 +20,7 @@ def execute(): from core.doctype.custom_script.custom_script import make_custom_server_script_file for name, dt, script in webnotes.conn.sql("""select name, dt, script from `tabCustom Script` where script_type='Server'"""): - if script.strip(): + if script and script.strip(): try: script = indent_using_tabs(script) make_custom_server_script_file(dt, script) diff --git a/patches/patch_list.py b/patches/patch_list.py index f882739cdc..05a7e59be8 100644 --- a/patches/patch_list.py +++ b/patches/patch_list.py @@ -238,4 +238,5 @@ patch_list = [ "patches.june_2013.p07_taxes_price_list_for_territory", "patches.october_2013.p08_cleanup_after_item_price_module_change", "patches.october_2013.p10_plugins_refactor", + "patches.1311.p01_cleanup", ] \ No newline at end of file