[FIX]DOCX Report Generation : bad return on falsy cond

This commit is contained in:
Fabien BOURGEOIS 2025-02-03 20:00:22 +01:00
parent 82c167b8ee
commit cf23e0df8d
2 changed files with 3 additions and 2 deletions

View File

@ -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.1.0", "version": "16.0.2.1.1",
"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"]},

View File

@ -490,7 +490,8 @@ class IrActionsReport(models.Model):
continue continue
else: # Not handled, add text only else: # Not handled, add text only
p.add_run(child.text) p.add_run(child.text)
return md return md
return field
jinja_env = jinja2.Environment() jinja_env = jinja2.Environment()