[IMP] connector_opencart: compare strings in lowercase form

This commit is contained in:
Jared Kipe
2021-05-11 11:08:02 -07:00
parent bb12965f16
commit 6b01daa83d

View File

@@ -230,6 +230,9 @@ class SaleOrderImporter(Component):
elif key == 'country_id':
if value != partner.country_id.id:
return False
elif bool(value) and isinstance(value, str):
if value.lower() != str(getattr(partner, key)).lower():
return False
elif bool(value) and value != getattr(partner, key):
return False
return True