added recurring print format to sales/purchase invoice and order

This commit is contained in:
Neil Trini Lasrado
2015-06-22 19:06:15 +05:30
parent d1605c5cb2
commit e2d8dd0663
9 changed files with 54 additions and 9 deletions

View File

@@ -124,7 +124,7 @@ def send_notification(new_rv):
frappe.sendmail(new_rv.notification_email_address,
subject= _("New {0}: #{1}").format(new_rv.doctype, new_rv.name),
message = _("Please find attached {0} #{1}").format(new_rv.doctype, new_rv.name),
attachments = [frappe.attach_print(new_rv.doctype, new_rv.name, file_name=new_rv.name)])
attachments = [frappe.attach_print(new_rv.doctype, new_rv.name, file_name=new_rv.name, print_format=new_rv.recurring_print_format)])
def notify_errors(doc, doctype, party, owner):
from frappe.utils.user import get_system_managers