Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions edi_exchange_template_oca/migrations/18.0.1.3.3/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2026 NuoBiT Solutions - Eric Antones <eantones@nuobit.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from openupgradelib import openupgrade

_xmlid_renames = [
(
"edi_exchange_template_oca.act_open_edi_exchange_template_output_view_tree",
"edi_exchange_template_oca.act_open_edi_exchange_template_output_view_list",
),
]


@openupgrade.migrate()
def migrate(env, version):
# Odoo 18 renamed the act_window_view mode 'tree' -> 'list' and converts
# existing ir_act_window_view rows in place, while this module renamed the
# xmlid of its list-mode record accordingly. Without renaming the xmlid on
# upgrade, the XML load finds no ir_model_data match and INSERTs a new row,
# which collides with the converted one on the
# act_window_view_unique_mode_per_action constraint.
openupgrade.rename_xmlids(env.cr, _xmlid_renames)
1 change: 1 addition & 0 deletions edi_exchange_template_oca/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
- Italo Lopes \<<italo.lopes@camptocamp.com>\>
- Hadrien HUVELLE \<<hadrien.huvelle@camptocamp.com>\>
- Maksym Yankin \<<maksym.yankin@camptocamp.com>\>
- Eric Antones \<<eantones@nuobit.com>\>