mirror of
https://gitlab.com/flectra-community/account-closing.git
synced 2024-11-22 13:42:06 +00:00
21 lines
680 B
Python
21 lines
680 B
Python
|
# Copyright 2012-2018 Camptocamp SA
|
||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||
|
|
||
|
from flectra.tests.common import TransactionCase
|
||
|
|
||
|
|
||
|
class TestCurrencyRevaluationReport(TransactionCase):
|
||
|
|
||
|
def test_wizard_empty_accounts(self):
|
||
|
wizard = self.env['unrealized.report.printer']
|
||
|
wiz = wizard.create({})
|
||
|
data = {'lang': 'en_US',
|
||
|
'tz': 'Europe/Brussels',
|
||
|
'uid': 1}
|
||
|
result = wiz.print_report(data)
|
||
|
|
||
|
self.assertEqual(result.get('type'), "ir.actions.report")
|
||
|
self.assertEqual(
|
||
|
result.get('report_name'),
|
||
|
"account_multicurrency_revaluation.curr_unrealized_report")
|