Browse Source

fixup! [ADD] duplicate treatment

pull/988/head
Holger Brunn 7 years ago
parent
commit
06be3271da
No known key found for this signature in database GPG Key ID: 1C9760FECA3AE18
  1. 2
      base_import_odoo/models/import_odoo_database.py

2
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)

Loading…
Cancel
Save