From ac2d7f99c218e7fe0c4fd2d0ba60ae91298678e7 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Fri, 9 Oct 2020 21:42:41 +0200 Subject: [PATCH] Test account is set before reading it's company account is empty on reconciliation without lines issue9684 review322221002 --- move.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/move.py b/move.py index aaee7fc9f8..611a4e0657 100644 --- a/move.py +++ b/move.py @@ -557,7 +557,8 @@ class Reconciliation(ModelSQL, ModelView): line=line.rec_name, party1=line.party.rec_name, party2=party.rec_name)) - if not account.company.currency.is_zero(debit - credit): + if (account + and not account.company.currency.is_zero(debit - credit)): lang = Lang.get() debit = lang.currency(debit, account.company.currency) credit = lang.currency(credit, account.company.currency)