Freeze Saving -- Where is the code related?

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

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