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)), })