fix: disable submit button to avoid multiple calls
This commit is contained in:
parent
bdba064fa6
commit
042b8524cc
@ -271,7 +271,9 @@ erpnext.stock.move_item = function (item, source, target, actual_qty, rate, call
|
|||||||
frappe.call({
|
frappe.call({
|
||||||
method: 'erpnext.stock.doctype.stock_entry.stock_entry_utils.make_stock_entry',
|
method: 'erpnext.stock.doctype.stock_entry.stock_entry_utils.make_stock_entry',
|
||||||
args: values,
|
args: values,
|
||||||
|
btn: dialog.get_primary_btn(),
|
||||||
freeze: true,
|
freeze: true,
|
||||||
|
freeze_message: __('Creating Stock Entry'),
|
||||||
callback: function (r) {
|
callback: function (r) {
|
||||||
frappe.show_alert(__('Stock Entry {0} created',
|
frappe.show_alert(__('Stock Entry {0} created',
|
||||||
['<a href="/app/stock-entry/' + r.message.name + '">' + r.message.name + '</a>']));
|
['<a href="/app/stock-entry/' + r.message.name + '">' + r.message.name + '</a>']));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user