fix: use dictionary filter instead of list (#25874)

Item query doesn't support list filter anymore.
This commit is contained in:
Ankush Menat 2021-05-28 21:12:25 +05:30 committed by GitHub
parent fb9cb0fd23
commit 431d3295b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,9 +76,9 @@ frappe.ui.form.on("Work Order", {
frm.set_query("production_item", function() {
return {
query: "erpnext.controllers.queries.item_query",
filters:[
['is_stock_item', '=',1]
]
filters: {
"is_stock_item": 1,
}
};
});