Is there a way to save the custom script in app and enable to for migrate?
yes
Add your custom script in hooks.py,
if script in custom location,
doctype_js = { "Item": "custom_scripts/item.js", }
if custom script is created in UI,
{ "doctype": "Custom Script", "filters": [ ["name", "in", ( "Employee-Client", )] ] },
export your custom script using bench export-fixtures
command
2 Likes
This works. Thanks a lot.