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 ''>