Skip to content

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

@Nick-OpusVL

Description

@Nick-OpusVL

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions