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

[12.0] violates not-null constraint decimal.precision #4357

Open
marcos-mendez opened this issue Mar 22, 2024 · 4 comments
Open

[12.0] violates not-null constraint decimal.precision #4357

marcos-mendez opened this issue Mar 22, 2024 · 4 comments
Labels

Comments

@marcos-mendez
Copy link

Baiscally is an odoo12 straight from source to an odoo13

2024-03-22 17:13:32,728 840 DEBUG bailaki-staging odoo.sql_db: query: INSERT INTO "ir_model_access" ("id", "create_uid", "create_date", "write_uid", "write_date", "active", "group_id", "name", "perm_create", "perm_read", "perm_unlink", "perm_write") VALUES (nextval('ir_model_access_id_seq'), 1, (now() at time zone 'UTC'), 1, (now() at time zone 'UTC'), true, 3, 'decimal.precision configuration', true, true, true, true) RETURNING id
2024-03-22 17:13:32,728 840 ERROR bailaki-staging odoo.sql_db: bad query: INSERT INTO "ir_model_access" ("id", "create_uid", "create_date", "write_uid", "write_date", "active", "group_id", "name", "perm_create", "perm_read", "perm_unlink", "perm_write") VALUES (nextval('ir_model_access_id_seq'), 1, (now() at time zone 'UTC'), 1, (now() at time zone 'UTC'), true, 3, 'decimal.precision configuration', true, true, true, true) RETURNING id
ERROR: null value in column "model_id" violates not-null constraint
DETAIL: Failing row contains (520, decimal.precision configuration, t, null, 3, t, t, t, t, 1, 2024-03-22 17:13:30.654659, 1, 2024-03-22 17:13:30.654659).

In my opinion there should be a querry before this one checking the model_id BUT as i am not expirienced in OpenUpgrade i don't know where to findit.

This BUG is not only in this Instance but in another instances where I have:

partner-contact
event
server-tools
web
social

How can I find where this INSERT is being generated?

How can i adjust the OpenUpgrade to the OCA best practices.

@legalsylvain
Copy link
Contributor

hi. @marcos-mendez . could you mention the technical name of the module that try to insert "decimal.precision configuration" in your target instance. (13 if in understand correctly) + github url.
thanks !

@marcos-mendez
Copy link
Author

@legalsylvain yes of course, Altought I will need some orientation if you don't mind.

How can i check this?

@marcos-mendez
Copy link
Author

@legalsylvain the Odoo log shows a previous line referred as: odoo/addons/product/security/product_security.xml

I don't know if this has something to do with your question in case.

@marcos-mendez
Copy link
Author

I found this, don't know if has something to do

https://github.com/odoo/odoo/blob/13.0/addons/product/security/product_security.xml#L3

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

No branches or pull requests

2 participants