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

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

Open
MrFaBemol opened this issue Apr 10, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@MrFaBemol
Copy link
Owner

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)
@MrFaBemol MrFaBemol added the bug Something isn't working label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant