commit | c82b52855cf43774e78d54a7fcd41c62884ac47a | [log] [tgz] |
---|---|---|
author | pateljannat <jannatpatel@MacBook-Air.local> | Tue Dec 08 11:07:59 2020 +0530 |
committer | pateljannat <jannatpatel@MacBook-Air.local> | Tue Dec 08 11:07:59 2020 +0530 |
tree | ee7e2318aab18703900bb08e010b8bc67f0cb47f | |
parent | c32ac223ed181d3a1a122775b93d6e4672d2e38f [diff] |
fix: template filter for tasks
diff --git a/erpnext/projects/doctype/project_template/project_template.js b/erpnext/projects/doctype/project_template/project_template.js index d7a876d..acc6849 100644 --- a/erpnext/projects/doctype/project_template/project_template.js +++ b/erpnext/projects/doctype/project_template/project_template.js
@@ -5,4 +5,13 @@ // refresh: function(frm) { // } + setup: function (frm) { + me.frm.set_query("task", "tasks", function (doc, cdt, cdn) { + return { + filters: { + "is_template": 1 + } + } + }); + } });