Merge pull request #41649 from frappe/mergify/bp/version-15-hotfix/pr-41401

fix: cost center filter according to the company in project (backport #41401)
This commit is contained in:
ruthra kumar
2024-05-27 10:42:09 +05:30
committed by GitHub

View File

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