You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an email is sent from a Frappe transaction, the user can select attachments that are stored in Nextcloud.
Automatically the system will download the files from Nextcloud and include them in the email as attached files.
The text was updated successfully, but these errors were encountered:
A hook in frappe has not been found that allows us to include the necessary change to implement this functionality.
To activate the new functionality it is necessary that you invade the Frappe code in the "get_content" function of "frappe / core / doctype / file / file.py"
Enter the lines of code in bold:
def get_content(self):
_method = frappe.get_hooks('doc_events', app_name="pibiapp").get('File').get('get_content')
_if method:
__method = frappe.get_attr(method[0])
__return method(self)
_"""Returns [file_name, content] for given file name fname"""
_if self.get('content'):
__return self.content
When an email is sent from a Frappe transaction, the user can select attachments that are stored in Nextcloud.
Automatically the system will download the files from Nextcloud and include them in the email as attached files.
The text was updated successfully, but these errors were encountered: