From 70f3b9d49ac12066f1b385a53f70e5fc7d8670af Mon Sep 17 00:00:00 2001 From: DiG Date: Mon, 17 Jan 2022 12:58:22 +0100 Subject: [PATCH] typo --- odoo-rpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odoo-rpc.py b/odoo-rpc.py index 66e27d5..f1a93af 100755 --- a/odoo-rpc.py +++ b/odoo-rpc.py @@ -229,8 +229,8 @@ def lookup_file( muid, format ): def lookup_model( muid ): eprint( "> Lookup model: %s" % (muid) ) recursive = False - if ( 'recursive' in opts and opts['recursive'] ): # or ( 'format' in opts and 'json' in opts['format'] ): - recursive = opts['recursive'] + if ( 'recursive' in OPTS and OPTS['recursive'] ): # or ( 'format' in OPTS and 'json' in OPTS['format'] ): + recursive = OPTS['recursive'] eprint( "> Recursive: %s" % (recursive) ) _tree = {}