[18.0][FIX] edi_exchange_template_oca: rename act_window_view xmlid tree->list on upgrade#1
Open
eantones wants to merge 1 commit into
Open
Conversation
…ist on upgrade Odoo 18 renamed the act_window_view mode 'tree' -> 'list' and its base migration converts existing ir_act_window_view rows in place. This module renamed the xmlid of its list-mode record (act_open_edi_exchange_template_output_view_tree -> ..._view_list) without a matching xmlid rename on upgrade, so the XML load INSERTs a fresh row and hits the act_window_view_unique_mode_per_action unique constraint against the converted row, aborting any 17.0 -> 18.0 upgrade with this module installed. Rename the xmlid in a pre-migration so the existing row is matched and updated in place.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Odoo 18 renamed the act_window_view mode
tree->listand its base migration converts existingir_act_window_viewrows in place. This module renamed the xmlid of its list-mode record (act_open_edi_exchange_template_output_view_tree->..._view_list) without a matching xmlid rename on upgrade, so the XML load INSERTs a fresh row and hits theact_window_view_unique_mode_per_actionunique constraint against the converted row, aborting any 17.0 -> 18.0 upgrade with this module installed.Fix: rename the xmlid in a
pre-migration.py(openupgrade.rename_xmlids) so the existing row is matched and updated in place.Found during the Oxigen Salud 14->18 migration rehearsal (hop 17->18 died at module load with the duplicate-key error). Candidate to upstream to OCA/edi-framework.