fix: cost center filter according to the company in project

(cherry picked from commit 249e8264dd)
This commit is contained in:
Nihantra C. Patel
2024-05-10 12:31:15 +05:30
committed by Mergify
parent a2bfe31876
commit 459d136368

View File

@@ -57,6 +57,14 @@ frappe.ui.form.on("Project", {
filters: filters,
};
});
frm.set_query("cost_center", () => {
return {
filters: {
company: frm.doc.company,
}
}
});
},
refresh: function (frm) {