From 5e1c295ac9a9c8b95b0eb79b09039cddbd9c809b Mon Sep 17 00:00:00 2001 From: ferran-S73 Date: Wed, 17 Dec 2025 16:58:20 +0100 Subject: [PATCH 1/2] [18.0][FIX] base_report_to_printer: neutralization scripts --- base_report_to_printer/data/neutralize.sql | 2 ++ base_report_to_printer/models/printing_report_xml_action.py | 1 + 2 files changed, 3 insertions(+) diff --git a/base_report_to_printer/data/neutralize.sql b/base_report_to_printer/data/neutralize.sql index 257602f1da1..d250a1301cb 100644 --- a/base_report_to_printer/data/neutralize.sql +++ b/base_report_to_printer/data/neutralize.sql @@ -1,2 +1,4 @@ update printing_server set active=false; update printing_printer set active=false; +update printing_report_xml_action set active=false; +update ir_act_report_xml set printing_printer_id=null; diff --git a/base_report_to_printer/models/printing_report_xml_action.py b/base_report_to_printer/models/printing_report_xml_action.py index 610a334b352..2a994f2ca11 100644 --- a/base_report_to_printer/models/printing_report_xml_action.py +++ b/base_report_to_printer/models/printing_report_xml_action.py @@ -37,6 +37,7 @@ class PrintingReportXmlAction(models.Model): string="Output Bin", domain="[('printer_id', '=', printer_id)]", ) + active = fields.Boolean(default=True) @api.onchange("printer_id") def onchange_printer_id(self): From f69ea39cac7bbfc3d22c1388b7dafa8618849034 Mon Sep 17 00:00:00 2001 From: Vicent-S73 Date: Thu, 18 Dec 2025 16:20:56 +0100 Subject: [PATCH 2/2] Add temporal fix to request test --- printer_zpl2/tests/test_test_mode.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/printer_zpl2/tests/test_test_mode.py b/printer_zpl2/tests/test_test_mode.py index 423c22cceba..ca05ce40d70 100644 --- a/printer_zpl2/tests/test_test_mode.py +++ b/printer_zpl2/tests/test_test_mode.py @@ -1,6 +1,7 @@ # Copyright (C) 2018 Florent de Labarre () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). import base64 +import time from unittest.mock import Mock, patch from odoo.tools import mute_logger @@ -79,6 +80,7 @@ def test_emulation_with_good_data(self, post): self.label.labelary_width = 80 self.label.labelary_height = 30 self.label.labelary_dpmm = "8dpmm" + time.sleep(3) self.env["printing.label.zpl2.component"].create( {"name": "ZPL II Label", "label_id": self.label.id, "data": '"good_data"'} )