Skip to content

Commit

Permalink
fix(Project): filter department by company
Browse files Browse the repository at this point in the history
(cherry picked from commit 5e736f0)
  • Loading branch information
barredterra authored and mergify[bot] committed Feb 29, 2024
1 parent fca70e3 commit 646b55e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions erpnext/projects/doctype/project/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ frappe.ui.form.on("Project", {
};
});

frm.set_query("department", function (doc) {
return {
filters: {
"company": doc.company,
}
};
});

// sales order
frm.set_query('sales_order', function () {
var filters = {
Expand Down

0 comments on commit 646b55e

Please sign in to comment.