19 lines
720 B
Python
19 lines
720 B
Python
from odoo.tests.common import TransactionCase
|
|
from odoo.tests import tagged
|
|
|
|
|
|
@tagged('post_install', '-at_install')
|
|
class TestAuditReport(TransactionCase):
|
|
|
|
def test_report_renders(self):
|
|
wizard = self.env['fusion.migration.wizard'].create({})
|
|
try:
|
|
pdf, content_type = self.env['ir.actions.report'].sudo()._render_qweb_pdf(
|
|
'fusion_accounting_assets.migration_audit_template',
|
|
res_ids=[wizard.id], data={},
|
|
)
|
|
# PDF or HTML both ok (wkhtmltopdf might be missing on dev VM)
|
|
self.assertGreater(len(pdf), 100)
|
|
except Exception as e:
|
|
self.skipTest(f"PDF render failed (likely wkhtmltopdf missing): {e}")
|