Merge pull request #12690 from rohitwaghchaure/subscription_sent_email_issue

[Fix] Subscription send notification issue
This commit is contained in:
rohitwaghchaure 2018-01-29 17:01:00 +05:30 committed by GitHub
commit 86c7ede321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,6 +232,8 @@ def get_next_date(dt, mcount, day=None):
def send_notification(new_rv, subscription_doc, print_format='Standard'):
"""Notify concerned persons about recurring document generation"""
print_format = print_format
subject = subscription_doc.subject or ''
message = subscription_doc.message or ''
if not subscription_doc.subject:
subject = _("New {0}: #{1}").format(new_rv.doctype, new_rv.name)