[FIX] recursion

This commit is contained in:
Fabien Pinckaers
2014-08-21 10:43:49 +02:00
parent d14297ac53
commit 98bc5adc6e
+2 -1
View File
@@ -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: