Add manage_recurring_documents and path to hooks, fix minor issues

This commit is contained in:
ankitjavalkarwork
2014-08-26 10:40:23 +05:30
parent e8331d40f3
commit ac085e0f59
4 changed files with 21 additions and 173 deletions

View File

@@ -118,4 +118,18 @@ def notify_errors(doc, doctype, customer, owner):
"type": doctype,
"name": doc,
"customer": customer
}))
}))
assign_task_to_owner(doc, doctype, "Recurring Invoice Failed", recipients)
def assign_task_to_owner(doc, doctype, msg, users):
for d in users:
from frappe.widgets.form import assign_to
args = {
'assign_to' : d,
'doctype' : doctype,
'name' : doc,
'description' : msg,
'priority' : 'High'
}
assign_to.add(args)