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

[IMP] attribute_set: fix tests errors #207

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

kobros-tech
Copy link

2025-03-17 14:15:07,476 346 ERROR odoo odoo.sql_db: bad query: INSERT INTO "res_users" ("active", "company_id", "create_date", "create_uid", "login", "partner_id", "write_date", "write_uid") VALUES (true, 1, '2025-03-17 14:15:07.463473', 1, 'attribute_manager', 41, '2025-03-17 14:15:07.463473', 1) RETURNING "id"
ERROR: null value in column "notification_type" violates not-null constraint
DETAIL: Failing row contains (8, 1, 41, t, 2025-03-17 14:15:07.463473, attribute_manager, null, null, 1, 1, null, null, 2025-03-17 14:15:07.463473, null, null).

2025-03-17 14:15:07,478 346 INFO odoo odoo.tests.suite: ======================================================================
2025-03-17 14:15:07,479 346 ERROR odoo odoo.tests.suite: ERROR: setUpClass (odoo.addons.attribute_set.tests.test_build_view.BuildViewCase)
Traceback (most recent call last):
File "/__w/odoo-pim/odoo-pim/attribute_set/tests/test_build_view.py", line 37, in setUpClass
cls.attribute_manager_user = cls.env["res.users"].create(
File "", line 2, in create
File "/opt/odoo/odoo/api.py", line 430, in _model_create_multi
return create(self, [arg])
File "/opt/odoo/odoo/addons/base/models/res_users.py", line 1696, in create
users = super(UsersView, self).create(new_vals_list)
File "", line 2, in create
File "/opt/odoo/odoo/api.py", line 431, in _model_create_multi
return create(self, arg)
File "/opt/odoo/odoo/addons/base/models/res_users.py", line 1401, in create
return super(UsersImplied, self).create(vals_list)
File "", line 2, in create
File "/opt/odoo/odoo/api.py", line 431, in _model_create_multi
return create(self, arg)
File "/opt/odoo/odoo/addons/base/models/res_users.py", line 652, in create
users = super(Users, self).create(vals_list)
File "", line 2, in create
File "/opt/odoo/odoo/api.py", line 431, in _model_create_multi
return create(self, arg)
File "/opt/odoo/odoo/addons/base/models/ir_fields.py", line 670, in create
recs = super().create(vals_list)
File "", line 2, in create
File "/opt/odoo/odoo/api.py", line 431, in _model_create_multi
return create(self, arg)
File "/opt/odoo/odoo/models.py", line 4010, in create
records = self._create(data_list)
File "/opt/odoo/odoo/models.py", line 4191, in _create
cr.execute(
File "/opt/odoo/odoo/sql_db.py", line 321, in execute
res = self._obj.execute(query, params)
psycopg2.errors.NotNullViolation: null value in column "notification_type" violates not-null constraint
DETAIL: Failing row contains (8, 1, 41, t, 2025-03-17 14:15:07.463473, attribute_manager, null, null, 1, 1, null, null, 2025-03-17 14:15:07.463473, null, null).

@kobros-tech
Copy link
Author

error was in #206 tests

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

Successfully merging this pull request may close these issues.

1 participant