remote.py as module

This commit is contained in:
DiG 2022-01-17 23:46:50 +01:00
parent 9f5d2acfd3
commit 4fbd775936
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ def lookup_model( muid, recurse = False ):
# if field.ttype == 'many2many':
# if field.ttype == 'reference':
if recurse == True or field.relation in recurse:
if recurse == True or type(recurse) == list and field.relation in recurse:
_tree[muid][field.name] = [ lookup_model( id ) for id in _tree[muid][field.name] ]