From 7c971744bc5ee8193f88365e2329b8ea96823880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 9 Jun 2026 13:01:23 +0200 Subject: [PATCH] Replace getattr by hasattr in report (grafted from 1a0574d67704d7acbd7c224d906a4be12aaf3423) --HG-- branch : 7.0 --- modules/account/general_ledger.fodt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account/general_ledger.fodt b/modules/account/general_ledger.fodt index 27a516da86..032689b8a8 100644 --- a/modules/account/general_ledger.fodt +++ b/modules/account/general_ledger.fodt @@ -913,7 +913,7 @@ <line.description or ''><line.move_description_used or ''> - <getattr(line.origin, 'rec_name', '')> + <line.origin and line.origin.rec_name or ''>