[FIX]Docx Report Generation : fix & solo chacacter (not html entity)
When pasted from outside.
This commit is contained in:
parent
ca6e8efe5e
commit
924cdc7537
@ -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"]},
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user