mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[IMP] connector_opencart: compare strings in lowercase form
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user