Can anyone tell me on how to add a document link in the Email Template?
Scenario: When an Employee applies for a leave application, the follow via email is checked. An Email Template called Leave approval notification will be sent to Leave approver. But there is no link to that particular document in the notification mail.
So, is it possible to include document link, so that leave approvers can click on that link and get to that document? Same thing should be applicable for Leave status notification template.
4 years later I want to achieve something like this, but: It seems that in newer versions (I’m using v14) {{frappe.utils.get_url_to_form(doc.doctype, doc.name)}}“>{{doc.name}}” returns a private url that can only be accessed by people who are logged in. But I want to achieve something like “View this in your browser” when “Send document web view link in email” is enabled. Where the link contains some kind of key that makes the file accessible without being logged in. Any idea how i could achieve this? Thanks
Sadly with this code it only works when you are logged in, i need something where you can access the invoice pdf online over a link (without being logged in in erpnext)