Return sys.exit in run-tests, allow system manager to delete bulk email
This commit is contained in:
parent
530f03c13f
commit
0b7deff77b
3 changed files with 4 additions and 3 deletions
|
|
@ -638,7 +638,7 @@ def run_tests(context, app=None, module=None, doctype=None, test=(), driver=None
|
|||
pass
|
||||
# sel.close()
|
||||
|
||||
return ret
|
||||
sys.exit(ret)
|
||||
|
||||
@click.command('serve')
|
||||
@click.option('--port', default=8000)
|
||||
|
|
|
|||
|
|
@ -64,13 +64,14 @@
|
|||
"icon": "icon-envelope",
|
||||
"idx": 1,
|
||||
"in_create": 1,
|
||||
"modified": "2015-03-19 05:36:16.813340",
|
||||
"modified": "2015-03-31 15:10:57.553836",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Email",
|
||||
"name": "Bulk Email",
|
||||
"owner": "Administrator",
|
||||
"permissions": [
|
||||
{
|
||||
"delete": 1,
|
||||
"email": 1,
|
||||
"permlevel": 0,
|
||||
"print": 1,
|
||||
|
|
|
|||
|
|
@ -252,7 +252,7 @@ def notify_unreplied():
|
|||
"unread_notification_sent": 0,
|
||||
"creation": ("<", datetime.now() - timedelta(seconds = (email_account.unreplied_for_mins or 30) * 60)),
|
||||
"creation": (">", datetime.now() - timedelta(seconds = (email_account.unreplied_for_mins or 30) * 60 * 3))
|
||||
}, debug=True):
|
||||
}):
|
||||
comm = frappe.get_doc("Communication", comm.name)
|
||||
|
||||
if frappe.db.get_value(comm.reference_doctype, comm.reference_name, "status")=="Open":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue