[fix] custom doctype

This commit is contained in:
Rushabh Mehta 2015-04-14 10:48:37 +05:30
parent 4582339bcf
commit bea1d52363

View file

@ -109,10 +109,10 @@ class DocType(Document):
self.export_doc()
self.make_controller_template()
# update index
self.run_module_method("on_doctype_update")
if self.flags.in_insert:
self.run_module_method("after_doctype_insert")
# update index
self.run_module_method("on_doctype_update")
if self.flags.in_insert:
self.run_module_method("after_doctype_insert")
delete_notification_count_for(doctype=self.name)
frappe.clear_cache(doctype=self.name)