remote.py as module
This commit is contained in:
parent
9f5d2acfd3
commit
4fbd775936
|
@ -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] ]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue