diff --git a/remote.py b/remote.py index 3f8752b..8b1e0b9 100755 --- a/remote.py +++ b/remote.py @@ -409,6 +409,16 @@ def save( model, domains, recurse = False, force = False ): jlog( unique_models ) to_browse = groupby_model( unique_models ) + for mod in to_browse.keys(): + print('loading %s %s' % (to_browse[mod].length, mod) ) + if mod in odoo.env: + try: + for inst in odoo.env[mod].browse( to_browse[mod] ): + print( inst.id, inst.name ) + except: + eprint('Model %s not found' % (mod) + continue + # list = odoo.env[mod].browse( to_browse[mod] ) return to_browse