fix: evaluation cashbook-currentvalue/diff return 'balance' on non-asset-cashbooks

This commit is contained in:
Frederik Jaeckel 2023-02-06 09:32:01 +01:00
parent ddb9bf732c
commit d01bd0dc0a
2 changed files with 16 additions and 1 deletions

View file

@ -3,7 +3,7 @@
# The COPYRIGHT file at the top level of this repository contains the
# full copyright notices and license terms.
from trytond.tests.test_tryton import ModuleTestCase, with_transaction
from trytond.tests.test_tryton import ModuleTestCase, with_transaction, activate_module
from trytond.pool import Pool
from trytond.transaction import Transaction
from trytond.exceptions import UserError
@ -16,6 +16,13 @@ class ReportTestCase(CashbookTestCase):
'Test cashbook book report module'
module = 'cashbook_report'
@classmethod
def setUpClass(cls):
""" add modelues
"""
super(ReportTestCase, cls).setUpClass()
activate_module(['dashboard', 'cashbook_investment'])
def prep_report_3books(self):
""" create 3x cashbooks, add bookings,
"""