fix(issue): View Tasks against an Issue
This commit is contained in:
parent
2ba21fb66c
commit
fa77b591ac
4
erpnext/support/doctype/issue/issue.js
Executable file → Normal file
4
erpnext/support/doctype/issue/issue.js
Executable file → Normal file
@ -4,6 +4,10 @@ frappe.ui.form.on("Issue", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
refresh: function(frm) {
|
refresh: function(frm) {
|
||||||
|
frm.add_custom_button(__("Task"), function () {
|
||||||
|
frappe.set_route("List", "Task", { "issue": frm.doc.name });
|
||||||
|
}, __("View"));
|
||||||
|
|
||||||
if(frm.doc.status!=="Closed") {
|
if(frm.doc.status!=="Closed") {
|
||||||
frm.add_custom_button(__("Close"), function() {
|
frm.add_custom_button(__("Close"), function() {
|
||||||
frm.set_value("status", "Closed");
|
frm.set_value("status", "Closed");
|
||||||
|
0
erpnext/support/doctype/issue/issue.py
Executable file → Normal file
0
erpnext/support/doctype/issue/issue.py
Executable file → Normal file
Loading…
x
Reference in New Issue
Block a user