mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 22:49:19 +00:00
fix: Add project filter in parent task field (#22655)
* fix: Add project filter in parent task field
This commit is contained in:
@@ -29,10 +29,16 @@ frappe.ui.form.on("Task", {
|
|||||||
filters: filters
|
filters: filters
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
},
|
|
||||||
|
|
||||||
refresh: function (frm) {
|
frm.set_query("parent_task", function () {
|
||||||
frm.set_query("parent_task", { "is_group": 1 });
|
let filters = {
|
||||||
|
"is_group": 1
|
||||||
|
};
|
||||||
|
if (frm.doc.project) filters["project"] = frm.doc.project;
|
||||||
|
return {
|
||||||
|
filters: filters
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
is_group: function (frm) {
|
is_group: function (frm) {
|
||||||
|
|||||||
Reference in New Issue
Block a user