refactor: BOM creator item selector with short description (cherry picked from commit 0f881bc90a7a02dd66e167159266aa4386b8dcec) Co-authored-by: Florian HENRY <florian.henry@open-concept.pro>
This commit is contained in:
parent
9abc07e34b
commit
ed06f0cd1b
@ -101,6 +101,7 @@ frappe.ui.form.on("BOM Creator", {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
dialog.fields_dict.item_code.get_query = "erpnext.controllers.queries.item_query";
|
||||||
dialog.show();
|
dialog.show();
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -113,6 +114,16 @@ frappe.ui.form.on("BOM Creator", {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
frm.set_query("item_code", "items", function() {
|
||||||
|
return {
|
||||||
|
query: "erpnext.controllers.queries.item_query",
|
||||||
|
}
|
||||||
|
});
|
||||||
|
frm.set_query("fg_item", "items", function() {
|
||||||
|
return {
|
||||||
|
query: "erpnext.controllers.queries.item_query",
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
refresh(frm) {
|
refresh(frm) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user