[15.0][MIG] printer_zpl2: Migration to 15.0

This commit is contained in:
duyanh
2022-10-28 12:52:47 +07:00
committed by Nils Hamerlinck
parent a6a30d8b50
commit cb480f87b5
11 changed files with 32 additions and 27 deletions

View File

@@ -1,6 +1,6 @@
# Copyright (C) 2018 Florent de Labarre (<https://github.com/fmdl>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import mock
from unittest.mock import patch
from odoo.tests.common import TransactionCase
@@ -45,7 +45,7 @@ class TestWizardPrintRecordLabel(TransactionCase):
record = Obj.search([], limit=1, order="id desc")
self.assertEqual(res, record)
@mock.patch("%s.cups" % model)
@patch("%s.cups" % model)
def test_print_label_test(self, cups):
"""Check if print test"""
self.label.test_print_mode = True