This provides an option to lock documents from editing. This helps avoid errors on documents by ensuring that only one user can edit a document at a time. This is an extensible feature and has already been implemented for Standard sales orders. To do so, opening the sales order, opens it on read mode only. If user wants to edit, they use the page action “Edit Order” which will lock it to them and not allow any other user to edit.
To allow other users to edit, the user whom the document is locked to will either close the document or use the page action “Unlock Order”