How to fetch Attachment in notification?
I got the answer
Use this one
{% set attachments = frappe.get_all(‘File’,
filters={‘attached_to_doctype’: doc.doctype,
‘attached_to_name’: doc.name,
‘file_name’: [‘like’, ‘%.pdf’]},
fields=[‘file_url’, ‘file_name’]) %}
{% for attachment in attachments %}
{{ attachment.file_name }}
{% endfor %}