|
@ -398,11 +398,11 @@ class ImportOdooDatabase(models.Model): |
|
|
defaults = model.default_get(required) |
|
|
defaults = model.default_get(required) |
|
|
values = {'id': record['id']} |
|
|
values = {'id': record['id']} |
|
|
for name, field in model._fields.items(): |
|
|
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 |
|
|
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']: |
|
|