Skip to content

Commit d929099

Browse files
jans23KDRdev
authored andcommitted
[FIX] document_page_reference: fix for knowledge page report printing
Currently, the document PDF report outputs raw HTML. This fix returns functionality which was used before merging PR #609 and aims to resolve report generation issues.
1 parent f428b8f commit d929099

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

document_page_reference/models/document_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def _resolve_reference(self, code):
9191
)
9292

9393
def get_raw_content(self):
94-
return str(self.with_context(raw_reference=True).get_content())
94+
return Markup(self.with_context(raw_reference=True).get_content())
9595

9696
@api.model_create_multi
9797
def create(self, vals_list):

0 commit comments

Comments
 (0)