Intechnity-com / OdooJsonRpcClient

Odoo Client Json Rpc
MIT License
70 stars 31 forks source link

OdooModelMapper.GetDotNetModel does not work for project.project and project.task #48

Open rashidim opened 1 year ago

rashidim commented 1 year ago

I use odoo v16 community version. bellow lines throw exception : System.Exception: 'Cannot unmarshal Enum 'OdooValueTypeEnum' - 'properties''

... var tableName = "project.task"; var modelResult = await odooClient.GetModelAsync(tableName); var model = OdooModelMapper.GetDotNetModel(tableName, modelResult.Value);

patricoos commented 1 year ago

Thanks for the info, I'll check it out

rashidim commented 1 year ago

I am awaiting

Maoie86 commented 1 year ago

is there news about this? thanks!

friedlda commented 1 year ago

@Maoie86 I ran in the same issue a couple of weeks ago. I had to fix/extend something so the enums would unmarshal properly. I actually already forgot what I exactly did but I think I just had to add case "porperties" ... I was able to find the issue simply with the debugger. And I think waiting for someone here to fix it for you would take for ever...

image