mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[ADD] Report Fill PDF
This commit is contained in:
committed by
Cyril VINH-TUNG
parent
dc32616025
commit
fa668adbfa
1
report_fillpdf/tests/__init__.py
Normal file
1
report_fillpdf/tests/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import test_report
|
||||
14
report_fillpdf/tests/test_report.py
Normal file
14
report_fillpdf/tests/test_report.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# Copyright 2017 Creu Blanca
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo.tests import common
|
||||
|
||||
|
||||
class TestReport(common.TransactionCase):
|
||||
def test_report(self):
|
||||
report_object = self.env['ir.actions.report']
|
||||
report_name = 'report_fillpdf.partner_fillpdf'
|
||||
report = report_object._get_report_from_name(report_name)
|
||||
docs = self.env['res.company'].search([], limit=1).partner_id
|
||||
self.assertEqual(report.report_type, 'fillpdf')
|
||||
report.render(docs.ids, {})
|
||||
Reference in New Issue
Block a user