Skip to content

[OU-FIX] mass_mailing: drop the merge act_window before the server action - #10

Merged
cursor[bot] merged 1 commit into
20.0from
cursor/ou-20-04-mailing-list-merge-action-3e8f
Nov 12, 2026
Merged

cursor[bot] merged 1 commit into
20.0from
cursor/ou-20-04-mailing-list-merge-action-3e8f

Conversation

@adekock11

Copy link
Copy Markdown
Owner

Symptom

ParseError: while parsing .../mass_mailing/data/ir_actions_server_data.xml
For external id mass_mailing.mailing_list_merge_action when trying to create/update a record of model ir.actions.server found record of different model ir.actions.act_window

Root cause

19.0 mass_mailing.mailing_list_merge_action is an ir.actions.act_window on mailing.list.merge (addons/mass_mailing/wizard/mailing_list_merge_views.xml). 20.0 removes that wizard. The same xmlid is an ir.actions.server on mailing.list whose code is action = records.action_mailing_lists_merge() (addons/mass_mailing/data/ir_actions_server_data.xml). The xmlid still points at the window, so the data file refuses to change the model.

Change

Pre-migration calls openupgrade.delete_records_safely_by_xml_id on mass_mailing.mailing_list_merge_action. The data file then creates the server action.

Both analysis lines (DEL act_window, NEW server action) are marked DONE.

Other xmlids with the same model change

Every upgrade_analysis.txt on this tree (the 19.0→20.0 analysis generated from the Odoo data files) was scanned for an xmlid that is both DEL ir.actions.act_window and NEW ir.actions.server, including across modules. Two xmlids match:

  • mass_mailing.mailing_list_merge_action (this PR)
  • sale.action_accrued_revenue_entry_sale_order_line (separate PR)

No xmlid moves the other way (server action → act_window).

Verification

Compared the 19.0 and 20.0 XML records. ruff is clean. No database upgrade was run. No OCA pull request deletes this xmlid.

Upstream

Generic. Submit to OCA 20.0 on top of OCA#6068.

Limitation

delete_records_safely_by_xml_id turns the xmlid noupdate if the unlink fails (a child row the helper does not know about). In that case the ParseError would remain. The 19.0 window has no separate child xmlid in the data file; the binding lives on the action itself.

Open in Web Open in Cursor 

@cursor
cursor Bot merged commit 43e2578 into 20.0 Nov 12, 2026
4 of 5 checks passed
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.

2 participants