瀏覽代碼

[fix] When user clicks on link in invoice there are duplicate DNs are showing against it (#3204)

version-14
rohitwaghchaure 8 年之前
committed by Rushabh Mehta
父節點
當前提交
73af73c2e7
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      frappe/desk/form/linked_with.py

+ 1
- 1
frappe/desk/form/linked_with.py 查看文件

@@ -66,7 +66,7 @@ def get_linked_docs(doctype, name, linkinfo=None, for_doctype=None):
if link.get("doctype_fieldname"): if link.get("doctype_fieldname"):
filters.append([link.get('child_doctype'), link.get("doctype_fieldname"), "=", doctype]) filters.append([link.get('child_doctype'), link.get("doctype_fieldname"), "=", doctype])


ret = frappe.get_list(doctype=dt, fields=fields, filters=filters)
ret = frappe.get_list(doctype=dt, fields=fields, filters=filters, distinct=True)


else: else:
if link.get("fieldname"): if link.get("fieldname"):


Loading…
取消
儲存