Added lookup-recs command

This commit is contained in:
DiG 2022-01-16 16:27:50 +01:00
parent 3a2a0e8fb3
commit 332ca0835d
1 changed files with 2 additions and 2 deletions

View File

@ -271,7 +271,7 @@ def lookup_model( muid ):
return _tree
def lookup_recs( model, domains ):
eprint( "> Lookup recusif: %s %s" % (model,domains) )
eprint( "> Lookup recursif: %s %s" % (model,domains) )
if model in MODEL_IGNORE:
eprint( 'IGNORED' )
return
@ -282,7 +282,7 @@ def lookup_recs( model, domains ):
for inst in Model.browse( ids ):
tree = lookup( Muid(model, inst.id) )
tree = lookup_model( Muid(model, inst.id) )
filename = json_path( model, inst.id )
if filename in [item['file'] for item in stack]:
continue