fix: not allow template item in product bundle item - v15/v14

This commit is contained in:
Nihantra C. Patel
2024-05-08 10:32:28 +05:30
committed by GitHub
parent 913cea0018
commit 9864377b47

View File

@@ -9,5 +9,13 @@ frappe.ui.form.on("Product Bundle", {
query: "erpnext.selling.doctype.product_bundle.product_bundle.get_new_item_code",
};
});
frm.set_query("item_code", "items", () => {
return {
"filters": {
"has_variants": 0
},
};
});
},
});