浏览代码

[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, res = webnotes.model.meta.get_dt_values(self.doctype,
'autoname, issingle, istable, name_case', as_dict=1) 'autoname, issingle, istable, name_case', as_dict=1)
res = res and res[0] or {} res = res and res[0] or {}
doctypelist = webnotes.get_doctype(self.doctype)
res = doctypelist and doctypelist[0].fields or {}


if new: if new:
self.fields["__islocal"] = 1 self.fields["__islocal"] = 1


正在加载...
取消
保存