In Odoo 18 when using the “GetDotNetModel” method it throws the exception “Not expected Property Value Type”.
To correct this make the following modifications
1-In OdooModelMapper.cs method ConvertToDotNetPropertyTypeTypeName
Add the lines in the case:
case OdooValueTypeEnum.Properties:
return “string”;
case OdooValueTypeEnum.PropertiesDefinition:
return “string”;
2-In OdooPropertyInfo.cs method ToOdooValueTypeEnum
Add in the case
case “properties”:
return OdooValueTypeEnum.Properties;
case “properties_definition”:
return OdooValueTypeEnum.PropertiesDefinition;
3-In OdooPropertyInfo.cs OdooValueTypeEnum
Add this value to the enum type
PropertiesDefinition,
Properties
In Odoo 18 when using the “GetDotNetModel” method it throws the exception “Not expected Property Value Type”.
To correct this make the following modifications
1-In OdooModelMapper.cs method ConvertToDotNetPropertyTypeTypeName
Add the lines in the case:
2-In OdooPropertyInfo.cs method ToOdooValueTypeEnum
Add in the case
3-In OdooPropertyInfo.cs OdooValueTypeEnum
Add this value to the enum type