You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
847 B
20 lines
847 B
# -*- coding: utf-8 -*-
|
|
# © 2016 Therp BV <http://therp.nl>
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
from lxml import etree
|
|
from odoo.tests.common import TransactionCase
|
|
|
|
|
|
class TestAccountFinancialReportHorizontal(TransactionCase):
|
|
def test_account_financial_report_horizontal(self):
|
|
action = self.env['accounting.report'].with_context(
|
|
active_id=self.env.ref('account.menu_account_report_pl').id,
|
|
active_model='ir.ui.view',
|
|
).create({}).check_report()
|
|
data = action['data']
|
|
html = self.env['report'].with_context(action['context']).get_html(
|
|
self.env[data['model']].browse(data['ids']),
|
|
report_name=action['report_name'],
|
|
data=data,
|
|
)
|
|
self.assertTrue(etree.fromstring(html).xpath('//div[@class="row"]'))
|