brotherton-erpnext/docs/dev/docs.dev.custom_script.md

855 B

_label _toc
Custom Script Examples
docs.dev.custom_script.fetch
docs.dev.custom_script.validate
docs.dev.custom_script.validate1
docs.dev.custom_script.validate2
docs.dev.custom_script.validate3
docs.dev.custom_script.read_only
docs.dev.custom_script.calculate
docs.dev.custom_script.item_code

How to Create a Custom Script

Create a Custom Script (you must have System Manager role for this):

  1. Got to: Setup > Custom Script > New Custom Script
  2. Select the DocType in which you want to add the Custom Script

Notes

  1. Server Custom Scripts are only available for the Administrator.
  2. Client Custom Scripts are in Javascript and Server Custom Scripts are in Python.
  3. For testing, make sure to go to Tools > Clear Cache and refresh after updating a Custom Script.