Intechnity-com / OdooJsonRpcClient

Odoo Client Json Rpc
MIT License
67 stars 29 forks source link

Odoo 17 Projects - Bug cannot unmarshal properties_definition #90

Open gosysdata opened 8 months ago

gosysdata commented 8 months ago

System.Exception HResult=0x80131500 Message=Cannot unmarshal Enum 'OdooValueTypeEnum' - 'properties_definition' Source=PortaCapena.OdooJsonRpcClient StackTrace: at PortaCapena.OdooJsonRpcClient.Models.OdooPropertyInfo.ToOdooValueTypeEnum(String value) at PortaCapena.OdooJsonRpcClient.Models.OdooPropertyInfo.get_PropertyValueType() at PortaCapena.OdooJsonRpcClient.Converters.OdooModelMapper.ConvertToDotNetPropertyTypeName(KeyValuePair2 property, String tableName) at PortaCapena.OdooJsonRpcClient.Converters.OdooModelMapper.GetDotNetModel(String tableName, Dictionary2 properties, Boolean addSummary) at Program.<

$>d__0.MoveNext() in

gosysdata commented 8 months ago

While executing

var tableName = "project.project"; var modelResult = await odooClient.GetModelAsync(tableName);

patricoos commented 8 months ago

odoo version?

gosysdata commented 8 months ago

17.0 enterprise on odoo.sh

On 8 Jan 2024, at 23:23, Patrick @.***> wrote:



odoo version?

— Reply to this email directly, view it on GitHubhttps://github.com/Intechnity-com/OdooJsonRpcClient/issues/90#issuecomment-1881915061, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDRQ72T2GW3SKWDSOP735P3YNRWVFAVCNFSM6AAAAABBQSDHYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBRHEYTKMBWGE. You are receiving this because you authored the thread.Message ID: @.***>

alberthoekstra commented 6 months ago

I got the same error. This is the version info:

{
  "server_version": "saas~17.1+e",
  "server_version_info": [
    "saas~17",
    1,
    0,
    "final",
    0,
    "e"
  ],
  "server_serie": "saas~17.1",
  "protocol_version": 1
}
WMLondo commented 2 months ago

Same error trying to get the "crm.lead" table, anyone found a solution?