Initialized dynamic link on Warehouse (#14135)

* Initialized dynamic link for Warehouse

* Codacy Fixes
This commit is contained in:
Gaurav Naik 2018-05-20 10:39:14 +05:30 committed by Nabin Hait
parent 8233cb11ed
commit 8f17281011

View File

@ -39,6 +39,8 @@ frappe.ui.form.on("Warehouse", {
frm.toggle_enable(['is_group', 'company'], false);
frappe.dynamic_link = {doc: frm.doc, fieldname: 'name', doctype: 'Warehouse'};
frm.fields_dict['parent_warehouse'].get_query = function(doc) {
return {
filters: {