Skip to content

[OU-FIX] payment_custom: clear redirect_form_view_id before the view is deleted - #14

Merged
cursor[bot] merged 1 commit into
20.0from
cursor/ou-20-08a-payment-custom-redirect-3e8f
Nov 12, 2026
Merged

cursor[bot] merged 1 commit into
20.0from
cursor/ou-20-08a-payment-custom-redirect-3e8f

Conversation

@adekock11

Copy link
Copy Markdown
Owner

Symptom

Could not delete obsolete record ... ir.ui.view payment_custom.redirect_form

because payment.provider.redirect_form_view_id references it.

Root cause

payment_custom.redirect_form is deleted in 20.0 (DEL ir.ui.view in the analysis). Providers of type Custom still store that view in redirect_form_view_id. The foreign key blocks the delete. 20.0 does not ship a replacement redirect form for this provider (custom payments no longer post through that view; pay_on_invoice is a new selection key).

Change

Pre-migration sets payment_provider.redirect_form_view_id to NULL where it points at the payment_custom.redirect_form xmlid. The column is touched only when it exists. The analysis line is marked DONE.

web.external_layout_bold is a custom view referenced by another custom view. That foreign key is not generic and is not handled here.

Verification

The analysis line and the absence of a replacement view in payment_custom 20.0 were checked. ruff is clean. No database upgrade was run. No OCA pull request clears this foreign key.

Upstream

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

Limitation

Only this xmlid is cleared. A custom view that also points redirect_form_view_id at a different obsolete view is left alone.

Open in Web Open in Cursor 

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