Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions base_report_to_printer/data/neutralize.sql
Original file line number Diff line number Diff line change
@@ -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;
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 2 additions & 0 deletions printer_zpl2/tests/test_test_mode.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright (C) 2018 Florent de Labarre (<https://github.com/fmdl>)
# 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
Expand Down Expand Up @@ -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"'}
)
Expand Down
Loading