Skip to content

Commit ff32856

Browse files
committed
[MIG] report_text_format_option: Migration to 19.0
Signed-off-by: Don Kendall <dkendall@ledoweb.com>
1 parent eb6aad9 commit ff32856

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

report_text_format_option/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"author": "Quartile, Odoo Community Association (OCA)",
66
"website": "https://github.com/OCA/reporting-engine",
77
"category": "Reporting",
8-
"version": "18.0.1.0.0",
8+
"version": "19.0.1.0.0",
99
"license": "LGPL-3",
1010
"depends": ["base"],
1111
"data": ["views/ir_actions_report_views.xml"],

report_text_format_option/tests/test_report_format_option.py

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,26 @@ class TestReportFormatOption(TransactionCase):
99
@classmethod
1010
def setUpClass(cls):
1111
super().setUpClass()
12-
cls.demo_report = cls.env.ref(
13-
"report_text_format_option.action_report_demo"
12+
cls.env["ir.ui.view"].create(
13+
{
14+
"name": "report_text_format_option test template",
15+
"type": "qweb",
16+
"key": "report_text_format_option.test_report_template",
17+
"arch": (
18+
"<t t-foreach='docs' t-as='doc'>\n"
19+
" <p>Hello, <t t-esc='doc.name'/>!</p>\n"
20+
"</t>"
21+
),
22+
}
23+
)
24+
cls.demo_report = cls.env["ir.actions.report"].create(
25+
{
26+
"name": "Test Text Report",
27+
"model": "res.partner",
28+
"report_type": "qweb-text",
29+
"report_name": "report_text_format_option.test_report_template",
30+
"report_file": "report_text_format_option.test_report_template",
31+
}
1432
).with_context(lang="en_US")
1533
cls.partner = cls.env["res.partner"].create({"name": "Odoo Test Partner"})
1634

0 commit comments

Comments
 (0)