commit | 5e736f0d061b05db8cdc0fd324fa3530079e7a07 | [log] [tgz] |
---|---|---|
author | barredterra <14891507+barredterra@users.noreply.github.com> | Thu Feb 29 16:44:46 2024 +0100 |
committer | barredterra <14891507+barredterra@users.noreply.github.com> | Thu Feb 29 16:44:46 2024 +0100 |
tree | 11d7e2497276bfdba977725c3171a47b879aafb6 | |
parent | 983f71975a599117a8fb9cf053ac1719227ccab9 [diff] |
fix(Project): filter department by company
diff --git a/erpnext/projects/doctype/project/project.js b/erpnext/projects/doctype/project/project.js index 2dac399..e0dd198 100644 --- a/erpnext/projects/doctype/project/project.js +++ b/erpnext/projects/doctype/project/project.js
@@ -35,6 +35,14 @@ }; }); + frm.set_query("department", function (doc) { + return { + filters: { + "company": doc.company, + } + }; + }); + // sales order frm.set_query('sales_order', function () { var filters = {