Browse Source

fixup! [ADD] duplicate treatment

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

4
base_import_odoo/models/import_odoo_database.py

@ -201,8 +201,8 @@ class ImportOdooDatabase(models.Model):
xmlid = '%d-%s-%d' % (
self.id, model._name.replace('.', '_'), _id or 0,
)
if self.env.ref('base_import_odoo.%s' % xmlid, False).exists():
new = self.env.ref('base_import_odoo.%s' % xmlid)
new = self.env.ref('base_import_odoo.%s' % xmlid, False)
if new and new.exists():
if self.duplicates == 'overwrite_empty':
record = {
key: value

Loading…
Cancel
Save