Browse Source

publish button hide if published

master
venkataakhil 1 year ago
parent
commit
a263a73125
  1. 3
      smart_service/transactions/doctype/publish/publish.js

3
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();
$(".grid-buttons").hide();
}
},

Loading…
Cancel
Save