From b1758fe339a29d308f7bc98e4e7cfff9894f8056 Mon Sep 17 00:00:00 2001 From: Denis Roussel Date: Mon, 20 Dec 2021 10:49:34 +0100 Subject: [PATCH 1/3] [14.0][FIX] base_report_to_printer: Don't use safe_eval as module --- base_report_to_printer/models/ir_actions_report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base_report_to_printer/models/ir_actions_report.py b/base_report_to_printer/models/ir_actions_report.py index bff68974bc3..b7d05a55fd8 100644 --- a/base_report_to_printer/models/ir_actions_report.py +++ b/base_report_to_printer/models/ir_actions_report.py @@ -4,9 +4,10 @@ # Copyright (C) 2011 Domsense srl () # Copyright (C) 2013-2014 Camptocamp () # 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"} From 87d4a5567cee18dd13615a0c642f87c3f8e435ca Mon Sep 17 00:00:00 2001 From: trisdoan Date: Thu, 3 Oct 2024 18:11:14 +0700 Subject: [PATCH 2/3] oca-port: blacklist PR(s) 242 for base_report_to_printer --- .oca/oca-port/blacklist/base_report_to_printer.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .oca/oca-port/blacklist/base_report_to_printer.json diff --git a/.oca/oca-port/blacklist/base_report_to_printer.json b/.oca/oca-port/blacklist/base_report_to_printer.json new file mode 100644 index 00000000000..c5e8b14a2ae --- /dev/null +++ b/.oca/oca-port/blacklist/base_report_to_printer.json @@ -0,0 +1,5 @@ +{ + "pull_requests": { + "242": "(auto) Nothing to port from PR #242" + } +} From 64320ca76f7af1bae028b27bda7f4f2cc47a0cc8 Mon Sep 17 00:00:00 2001 From: trisdoan Date: Wed, 9 Oct 2024 16:38:08 +0700 Subject: [PATCH 3/3] [FIX] base_report_to_printer: access error and wrong translated terms --- base_report_to_printer/i18n/sv.po | 2 +- base_report_to_printer/security/security.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/base_report_to_printer/i18n/sv.po b/base_report_to_printer/i18n/sv.po index 6c84e319630..3f0f41905d2 100644 --- a/base_report_to_printer/i18n/sv.po +++ b/base_report_to_printer/i18n/sv.po @@ -921,7 +921,7 @@ msgstr "Guide" #: code:addons/base_report_to_printer/wizards/print_attachment_report.py:0 #, python-format msgid "{name} ({copies} copies)" -msgstr "{namn} ({kopior} kopior)" +msgstr "{name} ({copies} kopior)" #~ msgid "Job" #~ msgstr "Jobb" diff --git a/base_report_to_printer/security/security.xml b/base_report_to_printer/security/security.xml index 8f68e127495..fba60173025 100644 --- a/base_report_to_printer/security/security.xml +++ b/base_report_to_printer/security/security.xml @@ -128,6 +128,7 @@ + Print Attachment User