[fix]if fieldtype is table and come under first 4 mandtory field (#3594)

This commit is contained in:
Vishal Dhayagude 2017-07-03 12:31:06 +05:30 committed by Rushabh Mehta
parent 88c8df2350
commit 933782861d

View file

@ -78,7 +78,7 @@ class DocType(Document):
if not [d.fieldname for d in self.fields if d.in_list_view]:
cnt = 0
for d in self.fields:
if d.reqd and not d.hidden:
if d.reqd and not d.hidden and not d.fieldtype == "Table":
d.in_list_view = 1
cnt += 1
if cnt == 4: break