Skip to content

[IMP] attribute_set: fix tests errors#207

Open
kobros-tech wants to merge 1 commit intoOCA:16.0from
kencove:16.0-imp-attribute-set-1
Open

[IMP] attribute_set: fix tests errors#207
kobros-tech wants to merge 1 commit intoOCA:16.0from
kencove:16.0-imp-attribute-set-1

Conversation

@kobros-tech
Copy link
Contributor

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
Contributor Author

error was in #206 tests

@kobros-tech
Copy link
Contributor Author

@rousseldenis

Many migrations here need to get merged, I guess we can start with this and then completeness.

@kobros-tech
Copy link
Contributor Author

@pedrobaeza

@pedrobaeza
Copy link
Member

Not using these modules.

@kobros-tech
Copy link
Contributor Author

@rousseldenis

@rousseldenis rousseldenis added the enhancement New feature or request label Sep 2, 2025
@rousseldenis rousseldenis added this to the 16.0 milestone Sep 2, 2025
@kobros-tech kobros-tech force-pushed the 16.0-imp-attribute-set-1 branch from cd38a8d to 7fda862 Compare September 3, 2025 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants