Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send PDF by email #3

Open
barredterra opened this issue May 4, 2020 · 1 comment
Open

Send PDF by email #3

barredterra opened this issue May 4, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@barredterra
Copy link
Member

  • Every time a PDF gets created, it should be sent to the customer by email.
contact_email_list = frappe.get_list('Contact Email', fields=['email_id'], filters={'parent': sinv.contact_person, 'is_primary': 1})
contact_email = contact_email_list[0].get('email_id') if contact_email_list else None
address_email = frappe.get_value('Address', sinv.customer_address, 'email_id')
to_mail = contact_email or address_email
  • Allow to set an Email Template for every DocType in PDF On Submit Settings.
  • Allow to enable/disable this feature.
@barredterra barredterra added the enhancement New feature or request label May 4, 2020
@wojosc
Copy link

wojosc commented Apr 24, 2023

I guess this can be achived by using a Notifcation. Please consider closing.
https://doku.phamos.eu/books/erpnext-benutzerhandbuch/page/mitteilung-notification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants