[fix]if fieldtype is table and come under first 4 mandtory field (#3594)
This commit is contained in:
parent
88c8df2350
commit
933782861d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue