Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings when generating for latest Odoo 18.1 #63

Open
tlaukkan opened this issue Mar 13, 2025 · 1 comment
Open

Warnings when generating for latest Odoo 18.1 #63

tlaukkan opened this issue Mar 13, 2025 · 1 comment

Comments

@tlaukkan
Copy link

Hi

I tried to generate models for Odoo 18.1 and got a lot of warnings like this:

warn: cannot find a go-odoo type for odoo type json
warn: cannot find a go-odoo type for odoo type properties
warn: cannot find a go-odoo type for odoo type properties_definition

It also seems that many of the model files where not generated maybe because of the above warnings. It would be nice if the warnings would mention what model the problem is related to and perhaps stop the process.

Kind regards,
Tommi

@Stolexiy
Copy link
Collaborator

Hello @tlaukkan

Yes, indeed the go-odoo doesn't support the Odoo types you listed. But that does not mean that a model will not be generated. In such cases, a field type will be set to interface{}.

You may get a not-generated model if it doesn't contain any fields or has no ID field.

Please take a look at the branch 18.0, it contains slightly updated log messages to give more information during the models generation process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants