Reviewers: ,


Please review this at http://codereview.tryton.org/775002/

Affected files:
  M account.py


Index: account.py
===================================================================

--- a/account.py
+++ b/account.py
@@ -234,9 +234,10 @@
         for type_ in childs:
             type_sum[type_.id] = Decimal('0.0')
 
-        accounts = Account.search([
-                ('type', 'in', [t.id for t in childs]),
-                ])
+        with Transaction().set_context(cumulate=True):
+            accounts = Account.search([
+                    ('type', 'in', [t.id for t in childs]),
+                    ])
         for account in accounts:
             type_sum[account.type.id] += account.company.currency.round(
                 account.debit - account.credit)

Reply via email to