Repository navigation
[OU-FIX] sale: drop the accrued-revenue act_window before the server action - #11
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
Same failure mode as
mass_mailing.mailing_list_merge_action, for sale:Root cause
19.0
sale.action_accrued_revenue_entry_sale_order_lineis anir.actions.act_windowwhoseres_modelisaccount.accrued.orders.wizard, bound tosale.order.line(addons/sale/wizard/account_accrued_orders_wizard_views.xml).20.0 is an
ir.actions.serveronsale.order.line(same binding). The code callsrecords.action_open_accrual_wizard()and no longer stores the wizard as the action's model. The xmlid still points at the window.Change
Pre-migration calls
openupgrade.delete_records_safely_by_xml_idonsale.action_accrued_revenue_entry_sale_order_line. The 20.0 data file creates the server action. Both analysis lines are marked DONE.Other xmlids with the same model change
Every
upgrade_analysis.txtin this tree was scanned for an xmlid that is bothDEL ir.actions.act_windowandNEW ir.actions.server, including when the DEL and the NEW sit in different modules. Two xmlids match:sale.action_accrued_revenue_entry_sale_order_line(this PR)mass_mailing.mailing_list_merge_action(separate PR)No xmlid moves from server action to act_window. The analysis is produced from the Odoo 19 and 20 data files, so this is the data-file comparison for the modules OpenUpgrade analyses.
Verification
Compared the 19.0 and 20.0 XML.
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
If unlink fails, the helper marks the xmlid noupdate and the ParseError remains. The 19.0 record's binding is a field on the action, not a separate xmlid.