fix(phase2): load fp_menu.xml first so bucket folders exist before refs

fp_rack_tag_views.xml (and several other view files) reference the
new Phase-2 Configuration sub-folder menus (menu_fp_config_*) defined
in fp_menu.xml. Odoo's data loader is strictly sequential within a
module, so fp_menu.xml must come before any file that references
its bucket xmlids.

Caught by entech upgrade (ParseError on rack-tag menuitem).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-04-27 22:46:53 -04:00
parent 3641b78a66
commit 62c1315997

View File

@@ -85,6 +85,12 @@ Copyright (c) 2026 Nexa Systems Inc. All rights reserved.
'data/fp_sequence_data.xml', 'data/fp_sequence_data.xml',
'data/fp_job_sequences.xml', 'data/fp_job_sequences.xml',
'data/fp_process_category_data.xml', 'data/fp_process_category_data.xml',
# fp_menu.xml MUST load early — defines menu_fp_root, menu_fp_config,
# menu_fp_compliance_hub, plus the 7 Phase-2 Configuration sub-folder
# buckets. Every other view file (in this module and downstream)
# that creates a child menu under those buckets references them
# by xmlid, which has to already exist at parse time.
'views/fp_menu.xml',
'views/fp_process_type_views.xml', 'views/fp_process_type_views.xml',
'views/fp_work_center_views.xml', 'views/fp_work_center_views.xml',
'views/fp_tank_views.xml', 'views/fp_tank_views.xml',
@@ -101,7 +107,6 @@ Copyright (c) 2026 Nexa Systems Inc. All rights reserved.
'views/fp_operator_certification_views.xml', 'views/fp_operator_certification_views.xml',
'views/res_config_settings_views.xml', 'views/res_config_settings_views.xml',
'views/fp_landing_views.xml', 'views/fp_landing_views.xml',
'views/fp_menu.xml',
'views/fp_work_centre_views.xml', 'views/fp_work_centre_views.xml',
'views/fp_job_views.xml', 'views/fp_job_views.xml',
'views/fp_job_step_views.xml', 'views/fp_job_step_views.xml',