Avoid traceback by: TypeError: '>' not supported between instances of 'datetime.date' and 'str' After that was migrated the use of native date/datetime for Date/Datetime fields. Based on https://github.com/odoo/odoo/commit/960360afe478a8f7b9c456721b5591154952a37d#diff-dd671a54296b170ea1393dca1a5f7798L348 closes odoo/odoo#27819