Skip to content

Problem with GetDotNetModel method at Odoo 18 #108

Description

@MarianoGomezBidondo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions