diff --git a/remote.py b/remote.py index e584662..b39f953 100644 --- a/remote.py +++ b/remote.py @@ -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] ]