Skip to content

[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
18.0from
18.0-fix-edi_exchange_template_oca-awv_xmlid_rename
Open

[18.0][FIX] edi_exchange_template_oca: rename act_window_view xmlid tree->list on upgrade#1
eantones wants to merge 1 commit into
18.0from
18.0-fix-edi_exchange_template_oca-awv_xmlid_rename

Conversation

@eantones

Copy link
Copy Markdown
Member

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.

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.

…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant