Please notice that this link on your website https://erpnext.org/docs/user/manual/en/customize-erpnext/custom-scripts/custom-script-examples/make-read-only-after-saving
it seems there is an error on your site, please check this one.
Thanks for reporting this, that issue is recorded here custom script example in docs raises Illegal Template exception · Issue #409 · erpnext/foundation · GitHub
edit: Here’s the source code https://github.com/erpnext/foundation/blob/master/foundation/www/docs/user/manual/en/customize-erpnext/custom-scripts/custom-script-examples/make-read-only-after-saving.md
1 Like