OdooJsonRpcClient icon indicating copy to clipboard operation
OdooJsonRpcClient copied to clipboard

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

Open rashidim opened this issue 2 years ago • 4 comments

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);

rashidim avatar Dec 03 '22 14:12 rashidim

Thanks for the info, I'll check it out

patricoos avatar Dec 05 '22 12:12 patricoos

I am awaiting

rashidim avatar Dec 31 '22 07:12 rashidim

is there news about this? thanks!

Maoie86 avatar Jun 15 '23 01:06 Maoie86

@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

friedlda avatar Jun 15 '23 10:06 friedlda