From 310bc462b9cefadb3d61e2dc16cfa4b754716677 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 20 Mar 2012 17:49:23 +0530 Subject: [PATCH] fix in doctype refactor patch --- erpnext/patches/mar_2012/doctype_get_refactor.py | 5 ++++- version.num | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erpnext/patches/mar_2012/doctype_get_refactor.py b/erpnext/patches/mar_2012/doctype_get_refactor.py index 37c752f0451..9818f7c6662 100644 --- a/erpnext/patches/mar_2012/doctype_get_refactor.py +++ b/erpnext/patches/mar_2012/doctype_get_refactor.py @@ -130,7 +130,10 @@ def create_file_list(): obj.doc.allow_attach = 1 obj.doc.save() obj.make_file_list() - obj.on_update() + from webnotes.model.db_schema import updatedb + updatedb(obj.doc.name) + from webnotes.utils.cache import CacheItem + CacheItem(obj.doc.name).clear() def change_to_decimal(): webnotes.conn.commit() diff --git a/version.num b/version.num index 6fb439a5f68..a637eba5461 100644 --- a/version.num +++ b/version.num @@ -1 +1 @@ -979 \ No newline at end of file +980 \ No newline at end of file