mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-01 07:37:04 +00:00
fix(issue): Replace Make buttons on Issue and Task with a dashboard
This commit is contained in:
@@ -4,10 +4,6 @@ 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");
|
||||
|
||||
15
erpnext/support/doctype/issue/issue_dashboard.py
Normal file
15
erpnext/support/doctype/issue/issue_dashboard.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from frappe import _
|
||||
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'issue',
|
||||
'transactions': [
|
||||
{
|
||||
'label': _('Activity'),
|
||||
'items': ['Task']
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user