-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Good afternoon!
I am doing a "read" command, because I already have a list of id's. As I understand it, I should not do a "search_read" then, because it results in two database calls. However, for the "read" the Odoo server actually expects a list of list of id's (only if there's more than one id). So it will throw an exception "BaseModel.read() got multiple values for argument 'fields'".
In short, I can not request
[12, 16]
but I should request
[[12, 16]]
The OdooRequestModel.Read() method expects a long[] for the id's and puts that straight into the requests, resulting in the error.
Complimentary to this, it would be nice if OdooClient has a ReadAsync() method for this.
Cheers! I'll put this in a PR if it makes sense.
Package version: 1.0.20
Metadata
Metadata
Assignees
Labels
No labels