Merge branch 'imp/12.0/connector_opencart__case_insensitive_email_search' into '12.0-test'

imp/12.0/connector_opencart__case_insensitive_email_search into 12.0-test

See merge request hibou-io/hibou-odoo/suite!903
This commit is contained in:
Hibou Bot
2021-05-11 18:09:21 +00:00

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