fix: custom buttons in issue

This commit is contained in:
pateljannat 2021-02-23 17:55:51 +05:30
parent d5656f4b76
commit 1e2772d389

View File

@ -49,8 +49,8 @@ frappe.ui.form.on("Issue", {
},
refresh: function (frm) {
if (frm.doc.status !== "Closed" && frm.doc.agreement_status === "Ongoing") {
if (frm.doc.service_level_agreement) {
if (frm.doc.status !== "Closed") {
if (frm.doc.service_level_agreement && frm.doc.agreement_status === "Ongoing") {
frappe.call({
"method": "frappe.client.get",
args: {