Repository navigation
[OU-FIX] payment_custom: clear redirect_form_view_id before the view is deleted - #14
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
because
payment.provider.redirect_form_view_idreferences it.Root cause
payment_custom.redirect_formis deleted in 20.0 (DEL ir.ui.viewin the analysis). Providers of type Custom still store that view inredirect_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_invoiceis a new selection key).Change
Pre-migration sets
payment_provider.redirect_form_view_idto NULL where it points at thepayment_custom.redirect_formxmlid. The column is touched only when it exists. The analysis line is marked DONE.web.external_layout_boldis 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_custom20.0 were checked.ruffis clean. No database upgrade was run. No OCA pull request clears this foreign key.Upstream
Generic. Submit to OCA
20.0on top of OCA#6068.Limitation
Only this xmlid is cleared. A custom view that also points
redirect_form_view_idat a different obsolete view is left alone.