[fix] the case when linked with custom doctype
This commit is contained in:
parent
cd45b98a77
commit
d780c8ae22
1 changed files with 5 additions and 1 deletions
|
|
@ -108,7 +108,11 @@ def _get_linked_doctypes(doctype):
|
|||
ret[dt] = {"get_parent": True}
|
||||
|
||||
for dt in ret.keys():
|
||||
doctype_module = load_doctype_module(dt)
|
||||
try:
|
||||
doctype_module = load_doctype_module(dt)
|
||||
except ImportError:
|
||||
# in case of Custom DocType
|
||||
continue
|
||||
|
||||
if getattr(doctype_module, "exclude_from_linked_with", False):
|
||||
del ret[dt]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue