[ui cleanup] [minor]

This commit is contained in:
Rushabh Mehta 2013-11-11 18:01:37 +05:30
parent 0d62fe821d
commit 3b9e864dec
3 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,9 @@
import webnotes import webnotes
def execute(): 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 from core.doctype.custom_field.custom_field import create_custom_field_if_values_exist
create_custom_field_if_values_exist("Material Request", create_custom_field_if_values_exist("Material Request",
{"fieldtype":"Text", "fieldname":"remark", "label":"Remarks","insert_after":"Fiscal Year"}) {"fieldtype":"Text", "fieldname":"remark", "label":"Remarks","insert_after":"Fiscal Year"})

View File

@ -20,7 +20,7 @@ def execute():
from core.doctype.custom_script.custom_script import make_custom_server_script_file 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` for name, dt, script in webnotes.conn.sql("""select name, dt, script from `tabCustom Script`
where script_type='Server'"""): where script_type='Server'"""):
if script.strip(): if script and script.strip():
try: try:
script = indent_using_tabs(script) script = indent_using_tabs(script)
make_custom_server_script_file(dt, script) make_custom_server_script_file(dt, script)

View File

@ -238,4 +238,5 @@ patch_list = [
"patches.june_2013.p07_taxes_price_list_for_territory", "patches.june_2013.p07_taxes_price_list_for_territory",
"patches.october_2013.p08_cleanup_after_item_price_module_change", "patches.october_2013.p08_cleanup_after_item_price_module_change",
"patches.october_2013.p10_plugins_refactor", "patches.october_2013.p10_plugins_refactor",
"patches.1311.p01_cleanup",
] ]