mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 15:32:14 +00:00
fix: cost center filter according to the company in project
(cherry picked from commit 249e8264dd)
This commit is contained in:
committed by
Mergify
parent
ca855e8ab8
commit
563e15e1c8
@@ -55,6 +55,14 @@ frappe.ui.form.on("Project", {
|
|||||||
filters: filters,
|
filters: filters,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
frm.set_query("cost_center", () => {
|
||||||
|
return {
|
||||||
|
filters: {
|
||||||
|
company: frm.doc.company,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
refresh: function (frm) {
|
refresh: function (frm) {
|
||||||
|
|||||||
Reference in New Issue
Block a user