OpusVL / OpenERP-OOM

OpenERP Object to Object Mapper (Perl)
0 stars 1 forks source link

Odoo 14: find() returns nothing every time #7

Open Nick-OpusVL opened 2 years ago

Nick-OpusVL commented 2 years ago

For some reason find() is returning nothing.

For example find(['id', '=', $id] returns nothing whereas retrieve($id) returns the object of the right id.

Using find(['code', '=', 'GB']) on a Country class pointing at res.country is another way to test this.

I've tried switching the "found" case to use retrieve instead of directly instantiating the object and this doesn't seem to have fixed it, which is doubly strange.