Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Nick-OpusVL opened this issue Feb 11, 2022 · 0 comments
Open

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

Nick-OpusVL opened this issue Feb 11, 2022 · 0 comments

Comments

@Nick-OpusVL
Copy link
Contributor

Nick-OpusVL commented Feb 11, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant