diff --git a/erpnext/accounts/doctype/account/account_tree.js b/erpnext/accounts/doctype/account/account_tree.js index db15eef2c7..bd0b8f2c34 100644 --- a/erpnext/accounts/doctype/account/account_tree.js +++ b/erpnext/accounts/doctype/account/account_tree.js @@ -48,5 +48,5 @@ frappe.treeview_settings["Account"] = { + " " + dr_or_cr + '').insertBefore(node.$ul); } - } + }, } \ No newline at end of file diff --git a/erpnext/accounts/doctype/cost_center/cost_center_tree.js b/erpnext/accounts/doctype/cost_center/cost_center_tree.js index d8d45c5a2a..8c049d00ac 100644 --- a/erpnext/accounts/doctype/cost_center/cost_center_tree.js +++ b/erpnext/accounts/doctype/cost_center/cost_center_tree.js @@ -22,5 +22,5 @@ frappe.treeview_settings["Cost Center"] = { {fieldtype:'Data', fieldname:'cost_center_name', label:__('New Cost Center Name'), reqd:true}, {fieldtype:'Check', fieldname:'is_group', label:__('Is Group'), description:__('Further cost centers can be made under Groups but entries can be made against non-Groups')} - ] + ], } \ No newline at end of file diff --git a/erpnext/setup/doctype/sales_person/sales_person_tree.js b/erpnext/setup/doctype/sales_person/sales_person_tree.js index 077cf3b448..38d447881b 100644 --- a/erpnext/setup/doctype/sales_person/sales_person_tree.js +++ b/erpnext/setup/doctype/sales_person/sales_person_tree.js @@ -1,6 +1,6 @@ frappe.treeview_settings["Sales Person"] = { fields: [ - {fieldtype:'Data', fieldname: 'name_field', + {fieldtype:'Data', fieldname: 'sales_person_name', label:__('New Sales Person Name'), reqd:true}, {fieldtype:'Link', fieldname:'employee', label:__('Employee'), options:'Employee', diff --git a/erpnext/stock/doctype/warehouse/warehouse.py b/erpnext/stock/doctype/warehouse/warehouse.py index 938e73c3d2..e371d7013e 100644 --- a/erpnext/stock/doctype/warehouse/warehouse.py +++ b/erpnext/stock/doctype/warehouse/warehouse.py @@ -278,7 +278,7 @@ def add_node(): parent = None doc.update({ - name_field: frappe.form_dict['name_field'], + name_field: frappe.form_dict['warehouse_name'], parent_field: parent, "is_group": frappe.form_dict['is_group'], "company": company diff --git a/erpnext/stock/doctype/warehouse/warehouse_tree.js b/erpnext/stock/doctype/warehouse/warehouse_tree.js index 0baed4d859..0b8106bbc7 100644 --- a/erpnext/stock/doctype/warehouse/warehouse_tree.js +++ b/erpnext/stock/doctype/warehouse/warehouse_tree.js @@ -11,7 +11,7 @@ frappe.treeview_settings['Warehouse'] = { default: frappe.defaults.get_default('company') ? frappe.defaults.get_default('company'): "" }], fields:[ - {fieldtype:'Data', fieldname: 'name_field', + {fieldtype:'Data', fieldname: 'warehouse_name', label:__('New Warehouse Name'), reqd:true}, {fieldtype:'Check', fieldname:'is_group', label:__('Is Group'), description: __("Child nodes can be only created under 'Group' type nodes")}