Skip to content

Commit 7b6ca38

Browse files
committed
fix(xml): remove deprecated <data> nodes from XML files
Fix broken XML structure where <data noupdate="0"> tags were left without matching closing </data> tags. Since noupdate="0" is the default, these wrapper tags are unnecessary. For files requiring noupdate="1", properly wrap records in <data noupdate="1">...</data> sections. Fixes OCA xml-deprecated-data-node check.
1 parent e8b84f0 commit 7b6ca38

File tree

72 files changed

+61
-251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+61
-251
lines changed

spp_alerts/security/rules.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<odoo>
3-
<data noupdate="1">
2+
<odoo noupdate="1">
43
<!-- Alert Record Rules -->
54

65
<!-- Multi-company isolation for alerts -->
@@ -26,6 +25,4 @@
2625
]</field>
2726
<field name="global" eval="True"/>
2827
</record>
29-
30-
</data>
3128
</odoo>

spp_api_v2/data/api_path_data.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<odoo>
3-
<data noupdate="0">
4-
<!-- API Path Configurations -->
3+
<!-- API Path Configurations -->
54

65
<!-- Individual Resource Path -->
76
<record id="api_path_individual" model="spp.api.path">
@@ -44,6 +43,4 @@
4443
<field name="allow_custom_filters">False</field>
4544
<field name="max_filter_complexity">10</field>
4645
</record>
47-
48-
</data>
4946
</odoo>

spp_api_v2/data/config_data.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8" ?>
2-
<odoo>
3-
<data noupdate="1">
2+
<odoo noupdate="1">
43
<!-- JWT Secret Configuration:
54
The JWT secret is automatically generated by the post_init_hook
65
when the module is installed. This ensures a cryptographically
@@ -31,6 +30,4 @@
3130
<field name="key">spp_api_v2.rate_limit_per_day</field>
3231
<field name="value">10000</field>
3332
</record>
34-
35-
</data>
3633
</odoo>

spp_api_v2/data/fastapi_endpoint.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<odoo>
3-
<data>
43
<!-- API V2 Endpoint Registration -->
54
<record id="fastapi_endpoint_api_v2" model="fastapi.endpoint">
65
<field name="name">OpenSPP API V2</field>
@@ -44,6 +43,4 @@ This API uses OAuth 2.0 Client Credentials flow:
4443
- Capability statement: `GET /api/v2/spp/metadata`
4544
</field>
4645
</record>
47-
48-
</data>
4946
</odoo>

spp_api_v2/data/filter_config_group.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<odoo>
3-
<data noupdate="0">
4-
<!-- Group Filters -->
3+
<!-- Group Filters -->
54

65
<!-- Name filter: partial match -->
76
<record id="filter_group_name" model="spp.api.path.filter">
@@ -91,6 +90,4 @@
9190
<field name="allowed_operators">gt,gte,lt,lte</field>
9291
<field name="is_indexed">True</field>
9392
</record>
94-
95-
</data>
9693
</odoo>

spp_api_v2/data/filter_config_individual.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<odoo>
3-
<data noupdate="0">
4-
<!-- Individual Filters -->
3+
<!-- Individual Filters -->
54

65
<!-- Name filter: partial match -->
76
<record id="filter_individual_name" model="spp.api.path.filter">
@@ -152,6 +151,4 @@
152151
<field name="allowed_operators">gt,gte,lt,lte</field>
153152
<field name="is_indexed">True</field>
154153
</record>
155-
156-
</data>
157154
</odoo>

spp_api_v2/data/filter_config_program.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<odoo>
3-
<data noupdate="0">
4-
<!-- Program Filters -->
3+
<!-- Program Filters -->
54

65
<!-- Name filter: partial match -->
76
<record id="filter_program_name" model="spp.api.path.filter">
@@ -78,6 +77,4 @@
7877
<field name="allowed_operators">gt,gte,lt,lte</field>
7978
<field name="is_indexed">True</field>
8079
</record>
81-
82-
</data>
8380
</odoo>

spp_api_v2/data/filter_config_program_membership.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<odoo>
3-
<data noupdate="0">
4-
<!-- ProgramMembership Filters -->
3+
<!-- ProgramMembership Filters -->
54

65
<!-- State filter: in list -->
76
<record id="filter_membership_state" model="spp.api.path.filter">
@@ -129,6 +128,4 @@
129128
{"field": "state", "operator": "eq", "value": "enrolled"}
130129
]</field>
131130
</record>
132-
133-
</data>
134131
</odoo>

spp_api_v2/views/api_client_views.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<odoo>
3-
<data>
43
<!-- API Client Tree View -->
54
<record id="view_api_client_tree" model="ir.ui.view">
65
<field name="name">spp.api.client.tree</field>
@@ -159,6 +158,4 @@
159158
</form>
160159
</field>
161160
</record>
162-
163-
</data>
164161
</odoo>

spp_api_v2/views/api_extension_views.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<odoo>
3-
<data>
43
<!-- API Extension Tree View -->
54
<record id="view_api_extension_tree" model="ir.ui.view">
65
<field name="name">spp.api.extension.tree</field>
@@ -77,6 +76,4 @@
7776
</p>
7877
</field>
7978
</record>
80-
81-
</data>
8279
</odoo>

0 commit comments

Comments
 (0)