Skip to content

[OU-FIX] sale: drop the accrued-revenue act_window before the server action - #11

Merged
cursor[bot] merged 1 commit into
20.0from
cursor/ou-20-05-sale-accrued-action-3e8f
Nov 12, 2026
Merged

cursor[bot] merged 1 commit into
20.0from
cursor/ou-20-05-sale-accrued-action-3e8f

Conversation

@adekock11

Copy link
Copy Markdown
Owner

Symptom

Same failure mode as mass_mailing.mailing_list_merge_action, for sale:

ParseError: ... For external id sale.action_accrued_revenue_entry_sale_order_line 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 sale.action_accrued_revenue_entry_sale_order_line is an ir.actions.act_window whose res_model is account.accrued.orders.wizard, bound to sale.order.line (addons/sale/wizard/account_accrued_orders_wizard_views.xml).

20.0 is an ir.actions.server on sale.order.line (same binding). The code calls records.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_id on sale.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.txt in this tree was scanned for an xmlid that is both DEL ir.actions.act_window and NEW 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. 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

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.

Open in Web Open in Cursor 

@cursor
cursor Bot merged commit c5d7dff 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