From 7754e3b05c8dc82a162afad578c88cae75aad7db Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 24 Apr 2013 15:32:12 +0530 Subject: [PATCH] [doc] [naming] consider customized properties --- webnotes/model/doc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webnotes/model/doc.py b/webnotes/model/doc.py index 167a94129f..bd3f4b44b9 100755 --- a/webnotes/model/doc.py +++ b/webnotes/model/doc.py @@ -380,6 +380,9 @@ class Document: res = webnotes.model.meta.get_dt_values(self.doctype, '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