Skip to content

Commit 2e11f27

Browse files
author
Lukas Tran
committed
[MIG] migrate report_wkhtmltopdf_param to 18.0
1 parent bdee38e commit 2e11f27

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

report_wkhtmltopdf_param/README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ Contributors
8282
- `Trobz <https://www.trobz.com>`__:
8383

8484
- Tris Doan <[email protected]>
85+
- Nhan Tran <[email protected]>
8586

8687
Other credits
8788
-------------

report_wkhtmltopdf_param/readme/CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
- Foram Shah \<<[email protected]>\>
55
- [Trobz](https://www.trobz.com):
66
- Tris Doan \<<[email protected]>\>
7+
- Nhan Tran \<<[email protected]>\>

report_wkhtmltopdf_param/static/description/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
429429
<li>Foram Shah &lt;<a class="reference external" href="mailto:foramshah&#64;initos.com">foramshah&#64;initos.com</a>&gt;</li>
430430
<li><a class="reference external" href="https://www.trobz.com">Trobz</a>:<ul>
431431
<li>Tris Doan &lt;<a class="reference external" href="mailto:tridm&#64;trobz.com">tridm&#64;trobz.com</a>&gt;</li>
432+
<li>Nhan Tran &lt;<a class="reference external" href="mailto:nhant&#64;trobz.com">nhant&#64;trobz.com</a>&gt;</li>
432433
</ul>
433434
</li>
434435
</ul>

report_wkhtmltopdf_param/tests/test_report_paperformat.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# Copyright 2017 Eficent Business and IT Consulting Services, S.L.
33
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
44

5+
import logging
6+
57
import odoo.tests
68
from odoo.exceptions import ValidationError
79
from odoo.tests.common import tagged
@@ -11,7 +13,10 @@
1113
class TestWkhtmltopdf(odoo.tests.TransactionCase):
1214
def test_wkhtmltopdf_incorrect_parameter(self):
1315
for report_paperformat in self.env["report.paperformat"].search([]):
14-
with self.assertRaises(ValidationError):
16+
with (
17+
self.assertRaises(ValidationError),
18+
self.assertLogs(level=logging.WARNING),
19+
):
1520
report_paperformat.update(
1621
{"custom_params": [(0, 0, {"name": "bad-parameter"})]}
1722
)

0 commit comments

Comments
 (0)