Skip to content

Cache does not pass context when fetching a field from only one record #48

@MrFaBemol

Description

@MrFaBemol

When auto fetching a record field, context is not passed if this is only one record

in cache.py

 if len(res_ids) == 1:
            return self[res_ids[0]][field].get()
        else:
            recordset = self.api.with_context(**context).browse(res_ids)
            return recordset.mapped(field)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions