WIP lookup one model

This commit is contained in:
DiG 2022-01-16 13:52:05 +01:00
parent 82714f0842
commit b93ffc0294
1 changed files with 3 additions and 1 deletions

View File

@ -222,7 +222,9 @@ def lookup_model( muid ):
eprint( "> Lookup model: %s" % (muid) )
_stack = []
model, id = string.split( muid, '/' )
if MODEL in odoo.env:
eprint( model, id )
if model in odoo.env:
rfields = rel_fields( model )
eprint( rfields )
inst = odoo.env[model].browse( id )