From 8cf19e7a9945ada5cc3e644798a349b056afa38b Mon Sep 17 00:00:00 2001 From: DiG Date: Mon, 17 Jan 2022 16:12:00 +0100 Subject: [PATCH] typo --- odoo-rpc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/odoo-rpc.py b/odoo-rpc.py index adec8bb..8746f32 100755 --- a/odoo-rpc.py +++ b/odoo-rpc.py @@ -477,7 +477,8 @@ def save( model, domains ): to_browse = {} for muid in unique_models: model, id = muid.split('/') - to_browse[model] = [] if not model in to_browse + if not model in to_browse: + to_browse[model] = [] to_browse[model] += id return to_browse