Add manage_recurring_documents and path to hooks, fix minor issues
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user