fix: hide template items from sales/purchase order
diff --git a/erpnext/public/js/controllers/buying.js b/erpnext/public/js/controllers/buying.js
index bbf1ff6..58eb891 100644
--- a/erpnext/public/js/controllers/buying.js
+++ b/erpnext/public/js/controllers/buying.js
@@ -90,7 +90,7 @@
else {
return{
query: "erpnext.controllers.queries.item_query",
- filters: { 'supplier': me.frm.doc.supplier, 'is_purchase_item': 1 }
+ filters: { 'supplier': me.frm.doc.supplier, 'is_purchase_item': 1, 'has_variants': 0}
}
}
});