fix(projects): add project filter

(cherry picked from commit 7248961568)
This commit is contained in:
Poovetha
2026-07-15 16:42:22 +05:30
committed by Sudharsanan11
parent 76fce556c8
commit 3ba83134af
2 changed files with 8 additions and 0 deletions

View File

@@ -14,6 +14,12 @@ frappe.ui.form.on("Task", {
};
},
onload: function (frm) {
frm.set_query("project", function () {
return {
query: "erpnext.controllers.queries.get_project_name",
};
});
frm.set_query("task", "depends_on", function () {
let filters = {
name: ["!=", frm.doc.name],

View File

@@ -30,6 +30,7 @@ frappe.ui.form.on("Timesheet", {
return {
filters: {
company: frm.doc.company,
status: "Open",
},
};
};
@@ -122,6 +123,7 @@ frappe.ui.form.on("Timesheet", {
return {
filters: {
customer: doc.customer,
status: "Open",
},
};
});