3 Modules with up to 20 DocTypes, these DocTypes are needed to be exported.
Can you point me at an automated way to do so? 'cause it doesn’t make a sense doing it manually.
Thanks in advance…
@Omar_M_K_Shehada the frappe-client have a method to export the templates
'no_letterhead': int(not bool(letterhead))
}
response = self.session.get(
self.url + '/print', params=params, stream=True
)
return self.post_process_file_stream(response)
def __load_downloadable_templates(self):
self.can_download = self.get_api('frappe.core.page.data_import_tool.data_import_tool.get_doctypes')
def get_upload_template(self, doctype, with_data=False):
if not self.can_download:
self.__load_downloadable_templates()
if doctype not in self.can_download:
raise NotUploadableException(doctype)
params = {
'doctype': doctype,
'parent_doctype': doctype,
'with_data': 'Yes' if with_data else 'No',
you can write a python script to download all data at once