update linked docs if not single
This commit is contained in:
parent
b5ecdf22fd
commit
aa442e33b0
1 changed files with 2 additions and 1 deletions
|
|
@ -443,7 +443,8 @@ def get_fetch_fields(doctype, linked_to, ignore_doctypes=None):
|
|||
for d in product_list:
|
||||
linked_doctype_info = frappe._dict()
|
||||
if d[0]['parent'] == d[1]['parent'] \
|
||||
and (not ignore_doctypes or d[0]['parent'] not in ignore_doctypes):
|
||||
and (not ignore_doctypes or d[0]['parent'] not in ignore_doctypes) \
|
||||
and not d[1]['issingle']:
|
||||
linked_doctype_info['doctype'] = d[0]['parent']
|
||||
linked_doctype_info['master_fieldname'] = d[0]['fieldname']
|
||||
linked_doctype_info['linked_to_fieldname'] = d[1]['fieldname']
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue