fix: disable submit button to avoid multiple calls

This commit is contained in:
Ankush Menat 2021-05-18 16:31:55 +05:30
parent bdba064fa6
commit 042b8524cc
No known key found for this signature in database
GPG Key ID: 8EA82E09BBD13AAF

View File

@ -271,7 +271,9 @@ erpnext.stock.move_item = function (item, source, target, actual_qty, rate, call
frappe.call({
method: 'erpnext.stock.doctype.stock_entry.stock_entry_utils.make_stock_entry',
args: values,
btn: dialog.get_primary_btn(),
freeze: true,
freeze_message: __('Creating Stock Entry'),
callback: function (r) {
frappe.show_alert(__('Stock Entry {0} created',
['<a href="/app/stock-entry/' + r.message.name + '">' + r.message.name + '</a>']));