[FIX]Docx Report Generation : fix & solo chacacter (not html entity)

When pasted from outside.
This commit is contained in:
Fabien BOURGEOIS 2025-02-07 15:38:22 +01:00
parent ca6e8efe5e
commit 924cdc7537
2 changed files with 2 additions and 2 deletions

View File

@ -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"]},

View File

@ -471,7 +471,7 @@ class IrActionsReport(models.Model):
.replace('<br>', '')
.replace('\t', '')
.replace('\n', '')
)
).replace('&', '\uFF06')
xml_tree = etree.fromstring('<root>%s</root>' % html_field)
md = tpl.new_subdoc()
p = md.add_paragraph()