Hey ppl,
Can please someone share the source code for “Freeze Saving” for example during Save a freeze window Saving appears. Where is the code related to that ?
Hi @kickapoo ,
You need to add freeze: true and put custom message under key freeze_message in the frappe.call method, for more details please check below link
https://github.com/frappe/erpnext/blob/develop/erpnext/accounts/page/pos/pos.js#L268-L284
// specified here because there are keyboard shortcuts to save
const working_label = {
Save: __("Saving", null, "Freeze message while saving a document"),
Submit: __("Submitting", null, "Freeze message while submitting a document"),
Update: __("Updating", null, "Freeze message while updating a document"),
Amend: __("Amending", null, "Freeze message while amending a document"),
Cancel: __("Cancelling", null, "Freeze message while cancelling a document"),
}[toTitle(action)];
var freeze_message = working_label ? __(working_label) : "";
var save = function () {
remove_empty_rows();
$(frm.wrapper).addClass("validated-form");
if ((action !== "Save" || frm.is_dirty()) && check_mandatory()) {
_call({
method: "frappe.desk.form.save.savedocs",
args: { doc: frm.doc, action: action },
This file has been truncated. show original
4 Likes
For anyone curious, you can also freeze the window manually using:
frappe.dom.freeze()
frappe.dom.unfreeze()
Frappe Github | dom.js
2 Likes