[19.0][MIG] document_page_reference#11
Open
dnplkndll wants to merge 49 commits into
Open
Conversation
[19.0][IMP] copier-update v1.43
… non-existing reference
[UPD] Update document_page_reference.pot [UPD] README.rst
also, make reference optional in tree view and not the first field.
Currently translated at 100.0% (7 of 7 strings) Translation: knowledge-15.0/knowledge-15.0-document_page_reference Translate-URL: https://translation.odoo-community.org/projects/knowledge-15-0/knowledge-15-0-document_page_reference/it/
Currently translated at 100.0% (7 of 7 strings) Translation: knowledge-15.0/knowledge-15.0-document_page_reference Translate-URL: https://translation.odoo-community.org/projects/knowledge-15-0/knowledge-15-0-document_page_reference/it/
Currently translated at 100.0% (7 of 7 strings) Translation: knowledge-15.0/knowledge-15.0-document_page_reference Translate-URL: https://translation.odoo-community.org/projects/knowledge-15-0/knowledge-15-0-document_page_reference/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: knowledge-16.0/knowledge-16.0-document_page_reference Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_reference/
Currently translated at 100.0% (7 of 7 strings) Translation: knowledge-16.0/knowledge-16.0-document_page_reference Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_reference/es/
Currently translated at 100.0% (7 of 7 strings) Translation: knowledge-16.0/knowledge-16.0-document_page_reference Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_reference/pt/
[FIX]document_page_reference :log warning updated [FIX]document_page_reference: null value issue fixed
19.0 Html fields return Markup; Markup.replace(token, plain_str) escapes the injected anchor, so content_parsed stored the <a> as literal text and no .oe_direct_line element rendered. Restore 18.0's get_content shape: seed with Markup(raw), return Markup() from _resolve_reference (+ backend_url href and the second pass that re-resolves already-rendered links). Bind the click handler via one delegated useExternalListener instead of per-node onMounted listeners.
Replace the dead oe_read_only/oe_edit_only CSS toggle (an open record is always o_form_editable in OWL, so content_parsed never showed) with readonly content_parsed + invisible/required content. Companion to the Markup-render fix.
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.
Port of
document_page_referencefrom 18.0 to 19.0.Supersedes OCA#589 (stale since 2026-05-05) — same replayed history + @gregory-rutecki's
[MIG], rebased on current 19.0, plus two fixes that make the reference-link feature actually work in 19.0:_resolve_referencereturnsMarkup(...)again (the port dropped it, so 19.0Markup.replaceHTML-escaped the anchor → links rendered as escaped text).content_parsedshown viareadonly="1"+invisible/requiredinstead of the deadoe_read_only/oe_edit_onlytoggle (no readonly mode in OWL forms → field wasdisplay:none). Verified on a runboat build: the resolved link now renders and is clickable.