Browse Source
fixup! [FIX] don't pass an empty string for required char fields
pull/988/head
Holger Brunn
7 years ago
No known key found for this signature in database
GPG Key ID: 1C9760FECA3AE18
1 changed files with
1 additions and
1 deletions
-
base_import_odoo/models/import_odoo_database.py
|
|
@ -398,7 +398,7 @@ class ImportOdooDatabase(models.Model): |
|
|
|
defaults = model.default_get(required) |
|
|
|
values = {'id': record['id']} |
|
|
|
for name, field in model._fields.items(): |
|
|
|
if name not in required or name in defaults: |
|
|
|
if name not in required or defaults.get(name): |
|
|
|
continue |
|
|
|
value = None |
|
|
|
if field.type in ['char', 'text', 'html']: |
|
|
|