diff --git a/smart_service/transactions/doctype/publish/publish.js b/smart_service/transactions/doctype/publish/publish.js index a638ec9..3c711f2 100644 --- a/smart_service/transactions/doctype/publish/publish.js +++ b/smart_service/transactions/doctype/publish/publish.js @@ -125,6 +125,7 @@ frappe.ui.form.on('Publish', { callback: function (r) { if (r.message[0]) { frm.set_value('publish_status', 'Published'); + frm.page.clear_primary_action("Publish"); frm.set_value('actual_published_date', frappe.datetime.nowdate()); frappe.call({ method: "smart_service.transactions.doctype.publish.publish.update_procedure_value", @@ -271,7 +272,7 @@ frappe.ui.form.on('Publish', { frm.fields_dict.variant_mapping_assets.grid.grid_buttons.find('.btn-custom').removeClass('btn-default').addClass('btn-primary'); } if (frm.doc.docstatus == 1) { - $(".grid-buttons").hide(); L̥ + $(".grid-buttons").hide(); } },