Skip to content
Snippets Groups Projects
Commit 42462002 authored by Rémi - Le Filament's avatar Rémi - Le Filament
Browse files

Fix selection import

parent 71be10ee
No related branches found
No related tags found
No related merge requests found
......@@ -175,7 +175,7 @@ class CgscopRigaOdooImport(models.Model):
value, '%d/%m/%Y %H:%M:%S')
return date_value
elif field_type == 'selection':
selection = self.env[model.model]._fields.get('state').selection
selection = self.env[model.model]._fields.get(odoo_field.name).selection
for item in selection:
if item[1] == value:
return item[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment