From 06be3271dade74c1ee7d95214a26bdd300fe9a45 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 24 Oct 2017 16:22:19 +0200 Subject: [PATCH] fixup! [ADD] duplicate treatment --- base_import_odoo/models/import_odoo_database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_import_odoo/models/import_odoo_database.py b/base_import_odoo/models/import_odoo_database.py index 9c3d10188..c8d8ff079 100644 --- a/base_import_odoo/models/import_odoo_database.py +++ b/base_import_odoo/models/import_odoo_database.py @@ -335,7 +335,7 @@ class ImportOdooDatabase(models.Model): continue if isinstance(record, list): record = record[0] - records = model.search([ + records = model.with_context(active_test=False).search([ (field.name, '=', record.get(field.name)) for field in mapping.field_ids ], limit=1)