Before this commit, the behavior is broken if using lazy values, the condition using isinstance does not work. It's best to use the slug as if given the correct value. Indeed, in odoo, we don't have any other object having `id` as attributes in addition to `seo_name` or `display_name` and not being a recordset and whose slug we want. If there is an error, it is imperative that we provided a tuple (from read). Part-of: odoo/odoo#88276