|
@ -36,8 +36,11 @@ class SqlFileWizard(models.TransientModel): |
|
|
toupdate_fields = [] |
|
|
toupdate_fields = [] |
|
|
for field in sql_export.field_ids: |
|
|
for field in sql_export.field_ids: |
|
|
toupdate_fields.append(field.name) |
|
|
toupdate_fields.append(field.name) |
|
|
|
|
|
attrib = {'name': field.name} |
|
|
|
|
|
if field.required: |
|
|
|
|
|
attrib['required'] = 'True' |
|
|
view_field = etree.SubElement( |
|
|
view_field = etree.SubElement( |
|
|
group, 'field', name=field.name) |
|
|
|
|
|
|
|
|
group, 'field', attrib=attrib) |
|
|
osv.orm.setup_modifiers( |
|
|
osv.orm.setup_modifiers( |
|
|
view_field, self.fields_get(field.name)) |
|
|
view_field, self.fields_get(field.name)) |
|
|
|
|
|
|
|
|