Open Cednac opened 10 months ago
Have you tried change values type from string to string[] ?
When we tried changing the values type to string[], we got an Error message saying:
{"Method not found: 'PortaCapena.OdooJsonRpcClient.Request.OdooFilter PortaCapena.OdooJsonRpcClient.Request.OdooFilter.ChildOf(System.String, System.String[])'."}
OdooFilter:
public OdooFilter ChildOf(string fieldName, string[] values)
{
var field = new object[] { fieldName, OdooOperator.ChildOf.Description(), values };
Add(field);
return this;
}
OdooFilterOft:
public OdooFilter<T> ChildOf(Expression<Func<T, object>> expression, string[] values)
{
ChildOf(OdooExpresionMapper.GetOdooPropertyName(expression), values);
return this;
}
Can you send me the parameters that I can use to reproduce it on demo data?
When attempting to use the filter function ChildOf in combination with other filters, I am encountering an error. This error prevents the filter from working as expected. If I am using other filter queries, like EqualsTo, filter is applied without failure and received object is correctly parsed.
My Code
Filter:
LicenseDataContract:
I have tried to alter the library ChildOf implementation like this, but receiving the same error: OdooFilter:
OdooFilterOft:
Error message: