brotherton-erpnext/erpnext/patches/v11_0/create_default_success_action.py
Suraj Shetty 00cced12a0 Success Action (#13666)
* success action config for  sales invoice

* remove "Notification Control" doctype and its usage

* add default success action after_install or while migration (patch)

* rename for_doctype to ref_doctype

* case change

* minor fix

* Remove unnecessary code

* Replace message with translatable message

* Fix 'cannot import error'
2018-05-03 19:06:32 +05:30

7 lines
183 B
Python

import frappe
from erpnext.setup.install import create_default_success_action
def execute():
frappe.reload_doc("core", "doctype", "success_action")
create_default_success_action()