Replace getattr by hasattr in report

(grafted from 1a0574d67704d7acbd7c224d906a4be12aaf3423)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier
2026-06-09 13:01:23 +02:00
parent 993cf9f948
commit 7c971744bc
+1 -1
View File
@@ -913,7 +913,7 @@
<text:p text:style-name="Table_20_Contents"><text:placeholder text:placeholder-type="text">&lt;line.description or &apos;&apos;&gt;</text:placeholder><text:line-break/><text:placeholder text:placeholder-type="text">&lt;line.move_description_used or &apos;&apos;&gt;</text:placeholder></text:p>
</table:table-cell>
<table:table-cell table:style-name="Lines.G6" office:value-type="string">
<text:p text:style-name="Table_20_Contents"><text:placeholder text:placeholder-type="text">&lt;getattr(line.origin, &apos;rec_name&apos;, &apos;&apos;)&gt;</text:placeholder></text:p>
<text:p text:style-name="Table_20_Contents"><text:placeholder text:placeholder-type="text">&lt;line.origin and line.origin.rec_name or &apos;&apos;&gt;</text:placeholder></text:p>
</table:table-cell>
</table:table-row>
<text:soft-page-break/>