Holger Brunn
7 years ago
No known key found for this signature in database
GPG Key ID: 1C9760FECA3AE18
1 changed files with
2 additions and
2 deletions
-
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 |
|
|
|