details:   https://code.tryton.org/tryton/commit/fdce3d76bc60
branch:    7.0
user:      Cédric Krier <[email protected]>
date:      Tue Jun 09 13:01:23 2026 +0200
description:
        Replace getattr by hasattr in report
        (grafted from 1a0574d67704d7acbd7c224d906a4be12aaf3423)
diffstat:

 modules/account/general_ledger.fodt |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 09ca5dd21265 -r fdce3d76bc60 modules/account/general_ledger.fodt
--- a/modules/account/general_ledger.fodt       Mon Jun 08 23:44:10 2026 +0200
+++ b/modules/account/general_ledger.fodt       Tue Jun 09 13:01:23 2026 +0200
@@ -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/>

Reply via email to