From 1b25d70fc592fd7e2a06c17f119113096654464d Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 17 Oct 2017 19:34:33 +0200 Subject: [PATCH] fixup! [FIX] dummy cleanup --- base_import_odoo/models/import_odoo_database.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base_import_odoo/models/import_odoo_database.py b/base_import_odoo/models/import_odoo_database.py index f35101f0b..3965dd49f 100644 --- a/base_import_odoo/models/import_odoo_database.py +++ b/base_import_odoo/models/import_odoo_database.py @@ -159,7 +159,8 @@ class ImportOdooDatabase(models.Model): self.env.cr.commit() missing = {} for dummy_model, remote_id in dummies.keys(): - missing.setdefault(dummy_model, []).append(remote_id) + if remote_id: + missing.setdefault(dummy_model, []).append(remote_id) self.write({ 'status_data': dict(self.status_data, dummies=dict(missing)), })