Merge pull request #41648 from frappe/mergify/bp/version-14-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:41:59 +05:30
committed by GitHub

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) {