Added lookup-recs command
This commit is contained in:
parent
3a2a0e8fb3
commit
332ca0835d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue