Merge pull request #41375 from Nihantra-Patel/no_add_variant_item_15-14

fix: not allow template item in product bundle item - v15/v14
This commit is contained in:
Deepesh Garg
2024-05-29 10:30:47 +05:30
committed by GitHub

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,
},
};
});
},
});