OdooJsonRpcClient icon indicating copy to clipboard operation
OdooJsonRpcClient copied to clipboard

Odoo 17 Projects - Bug cannot unmarshal properties_definition

Open gosysdata opened this issue 2 years ago • 5 comments

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.<<Main>$>d__0.MoveNext() in

gosysdata avatar Jan 07 '24 20:01 gosysdata

While executing

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

gosysdata avatar Jan 07 '24 20:01 gosysdata

odoo version?

patricoos avatar Jan 08 '24 22:01 patricoos

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: @.***>

gosysdata avatar Jan 08 '24 22:01 gosysdata

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
}

alberthoekstra avatar Mar 09 '24 11:03 alberthoekstra

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

WMLondo avatar Jun 11 '24 14:06 WMLondo