From 096b9a179cccb442c985a2aeb640f589e1e2cd65 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 25 Apr 2013 10:27:37 +0530 Subject: [PATCH] [doc] [revert] reverting autoname overwrite - in wrong place (should be in insert) and not required --- webnotes/model/doc.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/webnotes/model/doc.py b/webnotes/model/doc.py index bd3f4b44b9..a1182984b3 100755 --- a/webnotes/model/doc.py +++ b/webnotes/model/doc.py @@ -381,9 +381,6 @@ class Document: 'autoname, issingle, istable, name_case', as_dict=1) res = res and res[0] or {} - doctypelist = webnotes.get_doctype(self.doctype) - res = doctypelist and doctypelist[0].fields or {} - if new: self.fields["__islocal"] = 1