From 2ff75d4d83cc75986805a1a1176620b48bae3ed0 Mon Sep 17 00:00:00 2001 From: DiG Date: Mon, 17 Jan 2022 13:01:36 +0100 Subject: [PATCH] WIP lookup commands --- odoo-rpc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/odoo-rpc.py b/odoo-rpc.py index f1a93af..e3cd9e0 100755 --- a/odoo-rpc.py +++ b/odoo-rpc.py @@ -231,6 +231,8 @@ def lookup_model( muid ): recursive = False if ( 'recursive' in OPTS and OPTS['recursive'] ): # or ( 'format' in OPTS and 'json' in OPTS['format'] ): recursive = OPTS['recursive'] + if type(recursive) == str: + recursive = recursive.split(',') eprint( "> Recursive: %s" % (recursive) ) _tree = {}