From 98bc5adc6e9ec9312fa335db223d4025e603e451 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Thu, 21 Aug 2014 10:43:49 +0200 Subject: [PATCH] [FIX] recursion --- addons/account/account_cash_statement.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index f01e95ce613..0540d57a400 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -80,7 +80,8 @@ class account_cash_statement(osv.osv): if (statement.journal_id.type not in ('cash',)): continue if not statement.journal_id.cash_control: - statement.write({'balance_end_real' : statement.balance_end}) + if statement.balance_end_real <> statement.balance_end: + statement.write({'balance_end_real' : statement.balance_end}) continue start = end = 0 for line in statement.details_ids: