From e68e86f109aa07f140d03e8f7387c8a425500dd5 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 21 Apr 2015 15:26:22 +0530 Subject: [PATCH] execute on_doctype_update --- erpnext/patches.txt | 1 + erpnext/patches/v5_0/execute_on_doctype_update.py | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 erpnext/patches/v5_0/execute_on_doctype_update.py diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 615af13772..032a37b692 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -140,3 +140,4 @@ erpnext.patches.v5_0.update_opportunity erpnext.patches.v5_0.opportunity_not_submittable execute:frappe.permissions.reset_perms("Purchase Taxes and Charges Master") #2014-06-09 execute:frappe.permissions.reset_perms("Expense Claim Type") #2014-06-19 +erpnext.patches.v5_0.execute_on_doctype_update \ No newline at end of file diff --git a/erpnext/patches/v5_0/execute_on_doctype_update.py b/erpnext/patches/v5_0/execute_on_doctype_update.py new file mode 100644 index 0000000000..4fc640e32a --- /dev/null +++ b/erpnext/patches/v5_0/execute_on_doctype_update.py @@ -0,0 +1,8 @@ +# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors +# License: GNU General Public License v3. See license.txt + +import frappe + +def execute(): + for dt in ("Stock Ledger Entry", "Communication", "Comment", "DefaultValue", "DocShare", "File Data", "ToDo", "Feed"): + frappe.get_doc("DocType", dt).run_module_method("on_doctype_update") \ No newline at end of file