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:
commit
a36325c6e5
@ -48,5 +48,5 @@ frappe.treeview_settings["Account"] = {
|
||||
+ " " + dr_or_cr
|
||||
+ '</span>').insertBefore(node.$ul);
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
@ -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')}
|
||||
]
|
||||
],
|
||||
}
|
@ -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',
|
||||
|
@ -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
|
||||
|
@ -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")}
|
||||
|
Loading…
Reference in New Issue
Block a user