Merge pull request #7193 from KanchanChauhan/get-project-task
Show only Project tasks in depends on tasks
This commit is contained in:
commit
18d6dc0459
@ -67,4 +67,12 @@ frappe.ui.form.on("Task", {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
cur_frm.fields_dict['depends_on'].grid.get_field('task').get_query = function(doc) {
|
||||||
|
if(doc.project) {
|
||||||
|
return {
|
||||||
|
filters: {'project': doc.project}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
cur_frm.add_fetch('task', 'subject', 'subject');
|
cur_frm.add_fetch('task', 'subject', 'subject');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user