style: format code with black

This commit is contained in:
Ankush Menat
2022-03-28 18:52:46 +05:30
parent 21e00da3d6
commit 494bd9ef78
1395 changed files with 91704 additions and 62532 deletions

View File

@@ -1,25 +1,31 @@
from frappe import _
doctype_list = [
'Purchase Receipt',
'Purchase Invoice',
'Quotation',
'Sales Order',
'Delivery Note',
'Sales Invoice'
"Purchase Receipt",
"Purchase Invoice",
"Quotation",
"Sales Order",
"Delivery Note",
"Sales Invoice",
]
def get_message(doctype):
return _("{0} has been submitted successfully").format(_(doctype))
def get_first_success_message(doctype):
return get_message(doctype)
def get_default_success_action():
return [{
'doctype': 'Success Action',
'ref_doctype': doctype,
'message': get_message(doctype),
'first_success_message': get_first_success_message(doctype),
'next_actions': 'new\nprint\nemail'
} for doctype in doctype_list]
return [
{
"doctype": "Success Action",
"ref_doctype": doctype,
"message": get_message(doctype),
"first_success_message": get_first_success_message(doctype),
"next_actions": "new\nprint\nemail",
}
for doctype in doctype_list
]