Repository navigation
[OU-FIX] mass_mailing: drop the merge act_window before the server action - #10
Merged
Merged
Conversation
Co-authored-by: André de Kock <[email protected]>
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.
Symptom
Root cause
19.0
mass_mailing.mailing_list_merge_actionis anir.actions.act_windowonmailing.list.merge(addons/mass_mailing/wizard/mailing_list_merge_views.xml). 20.0 removes that wizard. The same xmlid is anir.actions.serveronmailing.listwhose code isaction = 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_idonmass_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.txton this tree (the 19.0→20.0 analysis generated from the Odoo data files) was scanned for an xmlid that is bothDEL ir.actions.act_windowandNEW 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.
ruffis clean. No database upgrade was run. No OCA pull request deletes this xmlid.Upstream
Generic. Submit to OCA
20.0on top of OCA#6068.Limitation
delete_records_safely_by_xml_idturns 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.