Skip to content

Commit b475877

Browse files
committed
fix: revert incorrectly uncommented manifest entries and fix fastapi test
Revert manifest changes that uncommented intentionally disabled files: - spp_vocabulary: re-disable relationship_views.xml and relationship_types.xml (circular dependency with spp_registry) - spp_registry: re-disable data/id_types.xml - spp_base_setting: re-disable res_users_views.xml and security/ir.model.access.csv Use oca_data_manual to satisfy the OCA file-not-used check without loading these files at install time. Also fix latent Odoo 19 bug in fastapi test: rename groups_id to group_ids (field was renamed in Odoo 19).
1 parent c2e3119 commit b475877

4 files changed

Lines changed: 16 additions & 4 deletions

File tree

fastapi/tests/test_fastapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def _get_or_create_demo_user(cls):
7171
{
7272
"name": "My Demo Endpoint User",
7373
"login": "my_demo_app_user",
74-
"groups_id": [Command.set([runner_group.id])],
74+
"group_ids": [Command.set([runner_group.id])],
7575
}
7676
)
7777
cls.env["ir.model.data"].create(

spp_base_setting/__manifest__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616
"spp_registry",
1717
],
1818
"data": [
19-
"security/ir.model.access.csv",
2019
"views/country_office_views.xml",
20+
# "views/res_users_views.xml",
21+
],
22+
"oca_data_manual": [
23+
"security/ir.model.access.csv",
2124
"views/res_users_views.xml",
2225
],
2326
"assets": {},

spp_registry/__manifest__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
# Data files
5252
"data/ir_model_data_aliases.xml",
5353
"data/ir_config_params.xml",
54-
"data/id_types.xml",
54+
# "data/id_types.xml",
5555
"data/vocabularies.xml",
5656
"data/res_users.xml",
5757
# Security
@@ -87,6 +87,9 @@
8787
"spp_registry/static/src/js/form_text_overflow.js",
8888
],
8989
},
90+
"oca_data_manual": [
91+
"data/id_types.xml",
92+
],
9093
"application": True,
9194
"installable": True,
9295
"auto_install": False,

spp_vocabulary/__manifest__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"views/concept_group_views.xml",
2222
"views/deployment_profile_views.xml",
2323
"views/vocabulary_selection_views.xml",
24-
"views/relationship_views.xml",
24+
# Temporarily disabled to break circular dependency with spp_registry
25+
# "views/relationship_views.xml",
2526
"views/menu.xml", # Child menus with actions - must be after view files
2627
"data/vocabulary_gender.xml",
2728
"data/vocabulary_relationship.xml",
@@ -41,6 +42,11 @@
4142
"data/concept_groups.xml",
4243
"data/vocabulary_id_type.xml",
4344
"data/vocabulary_cr_document_types.xml",
45+
# Temporarily disabled - references spp.relationship model from spp_registry
46+
# "data/relationship_types.xml",
47+
],
48+
"oca_data_manual": [
49+
"views/relationship_views.xml",
4450
"data/relationship_types.xml",
4551
],
4652
"application": False,

0 commit comments

Comments
 (0)