Skip to content

Commit

Permalink
[MIG] migrate report_wkhtmltopdf_param to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Tran committed Oct 25, 2024
1 parent bdee38e commit 2e11f27
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions report_wkhtmltopdf_param/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Contributors
- `Trobz <https://www.trobz.com>`__:

- Tris Doan <[email protected]>
- Nhan Tran <[email protected]>

Other credits
-------------
Expand Down
1 change: 1 addition & 0 deletions report_wkhtmltopdf_param/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
- Foram Shah \<<[email protected]>\>
- [Trobz](https://www.trobz.com):
- Tris Doan \<<[email protected]>\>
- Nhan Tran \<<[email protected]>\>
1 change: 1 addition & 0 deletions report_wkhtmltopdf_param/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<li>Foram Shah &lt;<a class="reference external" href="mailto:foramshah&#64;initos.com">foramshah&#64;initos.com</a>&gt;</li>
<li><a class="reference external" href="https://www.trobz.com">Trobz</a>:<ul>
<li>Tris Doan &lt;<a class="reference external" href="mailto:tridm&#64;trobz.com">tridm&#64;trobz.com</a>&gt;</li>
<li>Nhan Tran &lt;<a class="reference external" href="mailto:nhant&#64;trobz.com">nhant&#64;trobz.com</a>&gt;</li>
</ul>
</li>
</ul>
Expand Down
7 changes: 6 additions & 1 deletion report_wkhtmltopdf_param/tests/test_report_paperformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# Copyright 2017 Eficent Business and IT Consulting Services, S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

import logging

import odoo.tests
from odoo.exceptions import ValidationError
from odoo.tests.common import tagged
Expand All @@ -11,7 +13,10 @@
class TestWkhtmltopdf(odoo.tests.TransactionCase):
def test_wkhtmltopdf_incorrect_parameter(self):
for report_paperformat in self.env["report.paperformat"].search([]):
with self.assertRaises(ValidationError):
with (
self.assertRaises(ValidationError),
self.assertLogs(level=logging.WARNING),
):
report_paperformat.update(
{"custom_params": [(0, 0, {"name": "bad-parameter"})]}
)
Expand Down

0 comments on commit 2e11f27

Please sign in to comment.