What is "Module (for export)" In Client Script And Server Script

Take a look here. Objects like client/server scripts are really “data” on doctypes.

Use hooks.py to set the fixtures you want to export. In your case, client script. The module is the filter:

fixtures = [{"doctype": "Client Script", "filters": [["module" , "in" , ("yourmodule" )]]}]

Then run bench export-fixtures . This will create a folder called “Fixtures” on your app directory. Inside you can find a json file with the script content.

Hope this helps.

2 Likes