WIP lookup one model
This commit is contained in:
parent
ccec143871
commit
8a8c91e00e
|
@ -240,7 +240,8 @@ def lookup_model( muid ):
|
|||
_value = getattr( inst, field.name )
|
||||
print( field.name )
|
||||
print( _value )
|
||||
if _value.count() > 0:
|
||||
if _value:
|
||||
print( field.name, field.ttype )
|
||||
if field.ttype == 'many2one':
|
||||
id = _value.id
|
||||
_stack.append( Muid(field.relation, id) )
|
||||
|
|
Loading…
Reference in New Issue