ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

How to export Script Reports in Custom App?


#1

I created a custom app to export customizations I made on documents, fields, and print formats. I added “Report” as well to the fixtures property in hooks.py.
While the Report.json file under Fixtures folder included all properties of the reports, I am still not sure how to include the python script files for "Script Report"s.
Any clue?


#2

Very good question and thank you @Muhannad_Abdeljawwad For this post.
I need also to add one thing:
How to export the changes that done for doctype_list.js and doctype_dashboard.py?
Example, if I did changes on the sales_invoice_list.js and changes to the sales_invoice_dashboard.py, then how I can export these changes?

Or, is there a way in the custom application hooks.py to add configuration that determine from where to take the sales_invoice_list.js and the sales_invoice_dashboard.py, so they can be added in the custom application and to be used instead of these in the original application?

I need a way to add changes for the list and dashboard that will not be affected when doing update and can be added automatically when doing new installation, how? hooks.py can help?

Regards
Bilal