It appears that I'm encountering an issue while transferring data from Odoo 16 to Odoo 17. Specifically, when I use the search_read method to retrieve data from all fields like this res = models.execute_kw(db, uid, password, the_class, 'search_read', [domain], {'limit': 1})
, I encounter an error stating "unknown object has no attribute id." However, when I specify the fields I want to retrieve, such as the name like this res = models.execute_kw(db, uid, password, the_class, 'search_read', [domain], {'fields': ['name'], 'limit': 1})
, the operation executes successfully.
this is the error message:
return value.id\nAttributeError: \'_unknown\' object has no attribute \'id\'\n'>