[doc] [revert] reverting autoname overwrite - in wrong place (should be in insert) and not required

This commit is contained in:
Rushabh Mehta 2013-04-25 10:27:37 +05:30
parent 7754e3b05c
commit 096b9a179c

View file

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