Переглянути джерело

[doc] [naming] consider customized properties

version-14
Anand Doshi 12 роки тому
джерело
коміт
7754e3b05c
1 змінених файлів з 3 додано та 0 видалено
  1. +3
    -0
      webnotes/model/doc.py

+ 3
- 0
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


Завантаження…
Відмінити
Зберегти