From 1f4ef6f39dfb0c5bd02e8fead04c5c040e10f783 Mon Sep 17 00:00:00 2001 From: DiG Date: Mon, 17 Jan 2022 15:35:24 +0100 Subject: [PATCH] WIP lookup commands --- odoo-rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo-rpc.py b/odoo-rpc.py index 309c9fb..27998f0 100755 --- a/odoo-rpc.py +++ b/odoo-rpc.py @@ -349,7 +349,7 @@ def flatten_stack( data ): eprint( 'is a list') for item in obj: print( 'item: ', item, type(item)) - if type(item) == str: + if type(item) in (str,unicode): eprint( 'sub item is a str') flat.append( item ) if type(item) == dict: