Initialized dynamic link on Warehouse (#14135)
* Initialized dynamic link for Warehouse
* Codacy Fixes
diff --git a/erpnext/stock/doctype/warehouse/warehouse.js b/erpnext/stock/doctype/warehouse/warehouse.js
index 1bfa416..1bea00e 100644
--- a/erpnext/stock/doctype/warehouse/warehouse.js
+++ b/erpnext/stock/doctype/warehouse/warehouse.js
@@ -39,6 +39,8 @@
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: {