Skip to content

Commit

Permalink
[14.0][FIX] base_report_to_printer: Don't use safe_eval as module
Browse files Browse the repository at this point in the history
  • Loading branch information
rousseldenis authored and trisdoan committed Oct 9, 2024
1 parent ab0e7d3 commit fc3ad72
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base_report_to_printer/models/ir_actions_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>)
# Copyright (C) 2013-2014 Camptocamp (<http://www.camptocamp.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from time import time

from odoo import _, api, exceptions, fields, models
from odoo.tools.safe_eval import safe_eval, time
from odoo.tools.safe_eval import safe_eval

REPORT_TYPES = {"qweb-pdf": "pdf", "qweb-text": "text"}

Expand Down
8 changes: 8 additions & 0 deletions base_report_to_printer/tests/test_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ def setUp(self):
}
)
)
self.report_text = self.Model.create(
{
"name": "Test",
"report_type": "qweb-text",
"model": "res.partner",
"report_name": "base_report_to_printer.test",
}
)
self.report_text_view = self.env["ir.ui.view"].create(
{
"name": "Test",
Expand Down

0 comments on commit fc3ad72

Please sign in to comment.