From f958c59d050afcebbae8c6e890db20bc4ac86a15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 30 Jul 2025 15:12:15 +0200 Subject: [PATCH] Test if party is set before using its record name for reconciliation error message Closes #14127 --- modules/account/move.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/account/move.py b/modules/account/move.py index 9b91d35c5a..960ab8ad1b 100644 --- a/modules/account/move.py +++ b/modules/account/move.py @@ -677,8 +677,8 @@ class Reconciliation(ModelSQL, ModelView): gettext('account' '.msg_reconciliation_different_parties', line=line.rec_name, - party1=line.party.rec_name, - party2=party.rec_name)) + party1=line.party.rec_name if line.party else '', + party2=party.rec_name if party else '')) if not reconciliation.company.currency.is_zero(debit - credit): lang = Lang.get() debit = lang.currency(debit, reconciliation.company.currency)