fix: not able to create the batch (backport #42784) (backport #42785) (#42786)

fix: not able to create the batch (backport #42784) (#42785)

fix: not able to create the batch (#42784)

(cherry picked from commit 32c4fab14f)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
(cherry picked from commit 0f9849e672)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2024-08-16 11:47:53 +05:30
committed by GitHub
parent 73af5be1c3
commit a3e3585e50

View File

@@ -3,7 +3,7 @@
frappe.ui.form.on("Batch", { frappe.ui.form.on("Batch", {
setup: (frm) => { setup: (frm) => {
frm.fields_dict["item"].get_query = function (doc, cdt, cdn) { frm.set_query("item", () => {
return { return {
query: "erpnext.controllers.queries.item_query", query: "erpnext.controllers.queries.item_query",
filters: { filters: {
@@ -11,7 +11,7 @@ frappe.ui.form.on("Batch", {
has_batch_no: 1, has_batch_no: 1,
}, },
}; };
}; });
}, },
refresh: (frm) => { refresh: (frm) => {
if (!frm.is_new()) { if (!frm.is_new()) {