Merge pull request #6403 from saurabh6790/treeview_quick_entry_fix

[fix] minor fix to accomodate custom fields in tree popup
This commit is contained in:
Nabin Hait 2016-09-20 18:06:49 +05:30 committed by GitHub
commit a36325c6e5
5 changed files with 5 additions and 5 deletions

View File

@ -48,5 +48,5 @@ frappe.treeview_settings["Account"] = {
+ " " + dr_or_cr
+ '</span>').insertBefore(node.$ul);
}
}
},
}

View File

@ -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')}
]
],
}

View File

@ -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',

View File

@ -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

View File

@ -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")}