Merge pull request #302 from rmehta/master
[permission model] Redesign for webnotes/erpnext#1093
This commit is contained in:
commit
ab0acb277e
1 changed files with 3 additions and 2 deletions
|
|
@ -94,8 +94,9 @@ def get_linked_docs(doctype, name, metadata_loaded=None):
|
|||
link["doctype"] = dt
|
||||
linkmeta = webnotes.get_doctype(dt, True)
|
||||
if not linkmeta[0].get("issingle"):
|
||||
fields = [d.fieldname for d in linkmeta.get({"parent":dt, "in_list_view":1})] \
|
||||
+ ["name", "modified"]
|
||||
fields = [d.fieldname for d in linkmeta.get({"parent":dt, "in_list_view":1,
|
||||
"fieldtype": ["not in", ["Image", "HTML", "Button", "Table"]]})] \
|
||||
+ ["name", "modified", "docstatus"]
|
||||
|
||||
fields = ["`tab{dt}`.`{fn}`".format(dt=dt, fn=sf.strip()) for sf in fields if sf]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue