From e5716e3b1ef9175d94cc327d702e8b7bde46b949 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 11 Sep 2017 19:21:37 +0530 Subject: [PATCH] Default view of BOM is Listview --- erpnext/hooks.py | 2 +- erpnext/regional/india/setup.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/erpnext/hooks.py b/erpnext/hooks.py index 7e65fc9262..adcf5dec94 100644 --- a/erpnext/hooks.py +++ b/erpnext/hooks.py @@ -38,7 +38,7 @@ get_help_messages = "erpnext.utilities.activation.get_help_messages" on_session_creation = "erpnext.shopping_cart.utils.set_cart_count" on_logout = "erpnext.shopping_cart.utils.clear_cart_count" -treeviews = ['Account', 'Cost Center', 'Warehouse', 'Item Group', 'Customer Group', 'Sales Person', 'Territory', "BOM"] +treeviews = ['Account', 'Cost Center', 'Warehouse', 'Item Group', 'Customer Group', 'Sales Person', 'Territory'] # website update_website_context = "erpnext.shopping_cart.utils.update_website_context" diff --git a/erpnext/regional/india/setup.py b/erpnext/regional/india/setup.py index f306945bf0..59e23a7882 100644 --- a/erpnext/regional/india/setup.py +++ b/erpnext/regional/india/setup.py @@ -78,7 +78,8 @@ def add_print_formats(): def make_custom_fields(): hsn_sac_field = dict(fieldname='gst_hsn_code', label='HSN/SAC', - fieldtype='Data', options='item_code.gst_hsn_code', insert_after='description', print_hide=1) + fieldtype='Data', options='item_code.gst_hsn_code', insert_after='description', + allow_on_submit=1, print_hide=1) invoice_gst_fields = [ dict(fieldname='gst_section', label='GST Details', fieldtype='Section Break', insert_after='select_print_heading', print_hide=1, collapsible=1),