mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
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:
@@ -9,5 +9,13 @@ frappe.ui.form.on("Product Bundle", {
|
|||||||
query: "erpnext.selling.doctype.product_bundle.product_bundle.get_new_item_code",
|
query: "erpnext.selling.doctype.product_bundle.product_bundle.get_new_item_code",
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
frm.set_query("item_code", "items", () => {
|
||||||
|
return {
|
||||||
|
filters: {
|
||||||
|
has_variants: 0,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user