mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 22:48:27 +00:00
refactor: BOM creator item selector with short description
(cherry picked from commit 0f881bc90a)
Co-authored-by: Florian HENRY <florian.henry@open-concept.pro>
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user