Browse Source

fixup! [FIX] dummy cleanup

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

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

Loading…
Cancel
Save