You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
584 B
25 lines
584 B
from frappe import _
|
|
|
|
doctype_list = [
|
|
'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]
|
|
|