execute on_doctype_update

This commit is contained in:
Nabin Hait 2015-04-21 15:26:22 +05:30
parent 50918a8fcf
commit e68e86f109
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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")