Browse Source
[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
|
@ -402,7 +402,7 @@ class ImportOdooDatabase(models.Model): |
|
|
continue |
|
|
continue |
|
|
value = None |
|
|
value = None |
|
|
if field.type in ['char', 'text', 'html']: |
|
|
if field.type in ['char', 'text', 'html']: |
|
|
value = '' |
|
|
|
|
|
|
|
|
value = '/' |
|
|
elif field.type in ['boolean']: |
|
|
elif field.type in ['boolean']: |
|
|
value = False |
|
|
value = False |
|
|
elif field.type in ['integer', 'float']: |
|
|
elif field.type in ['integer', 'float']: |
|
|