[FIX]Docx Report Generation : fix return line to space
For better handling of some outside copy/paste.
This commit is contained in:
parent
316437ccfc
commit
3b52c81b27
@ -14,7 +14,7 @@
|
|||||||
"author": "RYDLAB, Yaltik",
|
"author": "RYDLAB, Yaltik",
|
||||||
"website": "https://rydlab.ru",
|
"website": "https://rydlab.ru",
|
||||||
"category": "Technical",
|
"category": "Technical",
|
||||||
"version": "16.0.2.2.2",
|
"version": "16.0.2.2.3",
|
||||||
"license": "LGPL-3",
|
"license": "LGPL-3",
|
||||||
"depends": ["base", "web", "custom_report_field", "report_monetary_helpers"],
|
"depends": ["base", "web", "custom_report_field", "report_monetary_helpers"],
|
||||||
"external_dependencies": {"python": ["docxcompose", "docxtpl", "beautifulsoup4"]},
|
"external_dependencies": {"python": ["docxcompose", "docxtpl", "beautifulsoup4"]},
|
||||||
|
@ -469,8 +469,8 @@ class IrActionsReport(models.Model):
|
|||||||
html_field = unescape(
|
html_field = unescape(
|
||||||
str(field)
|
str(field)
|
||||||
.replace('<br>', '')
|
.replace('<br>', '')
|
||||||
.replace('\t', '')
|
.replace('\t', ' ')
|
||||||
.replace('\n', '')
|
.replace('\n', ' ')
|
||||||
).replace('&', '\uFF06')
|
).replace('&', '\uFF06')
|
||||||
xml_tree = etree.fromstring('<root>%s</root>' % html_field)
|
xml_tree = etree.fromstring('<root>%s</root>' % html_field)
|
||||||
md = tpl.new_subdoc()
|
md = tpl.new_subdoc()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user