From 93178894d475199a773c636326a0d07302044bbc Mon Sep 17 00:00:00 2001 From: Jared Kipe Date: Mon, 4 May 2020 14:06:09 -0700 Subject: [PATCH] [FIX] connector_opencart: Compare string to string instead of integer. --- connector_opencart/models/product/importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connector_opencart/models/product/importer.py b/connector_opencart/models/product/importer.py index cdfbfcf5..c7988323 100644 --- a/connector_opencart/models/product/importer.py +++ b/connector_opencart/models/product/importer.py @@ -73,7 +73,7 @@ class ProductImporter(Component): backend = self.backend_record for option in record.get('options', []): for record_option_value in option.get('option_value', []): - option_value = existing_option_values.filtered(lambda v: v.external_id == record_option_value['product_option_value_id']) + option_value = existing_option_values.filtered(lambda v: v.external_id == str(record_option_value['product_option_value_id'])) name = unescape(record_option_value.get('name', '')) if not option_value: option_value = existing_option_values.create({