mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 04:59:18 +00:00
Initialized dynamic link on Warehouse (#14135)
* Initialized dynamic link for Warehouse * Codacy Fixes
This commit is contained in:
@@ -39,6 +39,8 @@ frappe.ui.form.on("Warehouse", {
|
|||||||
|
|
||||||
frm.toggle_enable(['is_group', 'company'], false);
|
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) {
|
frm.fields_dict['parent_warehouse'].get_query = function(doc) {
|
||||||
return {
|
return {
|
||||||
filters: {
|
filters: {
|
||||||
|
|||||||
Reference in New Issue
Block a user