From 924cdc753732482a535c38f442b95819ac4b09bf Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Fri, 7 Feb 2025 15:38:22 +0100 Subject: [PATCH] [FIX]Docx Report Generation : fix & solo chacacter (not html entity) When pasted from outside. --- docx_report_generation/__manifest__.py | 2 +- docx_report_generation/models/ir_actions_report.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docx_report_generation/__manifest__.py b/docx_report_generation/__manifest__.py index fcfc9c5..433c449 100755 --- a/docx_report_generation/__manifest__.py +++ b/docx_report_generation/__manifest__.py @@ -14,7 +14,7 @@ "author": "RYDLAB, Yaltik", "website": "https://rydlab.ru", "category": "Technical", - "version": "16.0.2.2.0", + "version": "16.0.2.2.1", "license": "LGPL-3", "depends": ["base", "web", "custom_report_field", "report_monetary_helpers"], "external_dependencies": {"python": ["docxcompose", "docxtpl", "beautifulsoup4"]}, diff --git a/docx_report_generation/models/ir_actions_report.py b/docx_report_generation/models/ir_actions_report.py index 65eb7f6..0faf52c 100644 --- a/docx_report_generation/models/ir_actions_report.py +++ b/docx_report_generation/models/ir_actions_report.py @@ -471,7 +471,7 @@ class IrActionsReport(models.Model): .replace('
', '') .replace('\t', '') .replace('\n', '') - ) + ).replace('&', '\uFF06') xml_tree = etree.fromstring('%s' % html_field) md = tpl.new_subdoc() p = md.add_paragraph()