fix(issue): View Tasks against an Issue

This commit is contained in:
Rohan Bansal 2019-02-14 16:32:11 +05:30
parent 2ba21fb66c
commit fa77b591ac
2 changed files with 4 additions and 0 deletions

4
erpnext/support/doctype/issue/issue.js Executable file → Normal file
View File

@ -4,6 +4,10 @@ frappe.ui.form.on("Issue", {
},
refresh: function(frm) {
frm.add_custom_button(__("Task"), function () {
frappe.set_route("List", "Task", { "issue": frm.doc.name });
}, __("View"));
if(frm.doc.status!=="Closed") {
frm.add_custom_button(__("Close"), function() {
frm.set_value("status", "Closed");

0
erpnext/support/doctype/issue/issue.py Executable file → Normal file
View File