diff --git a/printer_zpl2/tests/test_generate_action.py b/printer_zpl2/tests/test_generate_action.py index 194dd87..b9e8450 100644 --- a/printer_zpl2/tests/test_generate_action.py +++ b/printer_zpl2/tests/test_generate_action.py @@ -1,3 +1,4 @@ +# Copyright (C) 2018 Florent Mirieu () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo.tests.common import TransactionCase diff --git a/printer_zpl2/tests/test_printing_label_zpl2.py b/printer_zpl2/tests/test_printing_label_zpl2.py index 7418382..084b19b 100644 --- a/printer_zpl2/tests/test_printing_label_zpl2.py +++ b/printer_zpl2/tests/test_printing_label_zpl2.py @@ -45,13 +45,13 @@ class TestPrintingLabelZpl2(TransactionCase): def new_label(self, vals=None): values = self.label_vals.copy() - if vals is not None: + if vals: values.update(vals) return self.Model.create(values) def new_component(self, vals=None): values = self.component_vals.copy() - if vals is not None: + if vals: values.update(vals) return self.ComponentModel.create(values) diff --git a/printer_zpl2/tests/test_test_mode.py b/printer_zpl2/tests/test_test_mode.py index 870a837..8917142 100644 --- a/printer_zpl2/tests/test_test_mode.py +++ b/printer_zpl2/tests/test_test_mode.py @@ -1,3 +1,4 @@ +# Copyright (C) 2018 Florent Mirieu () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). import mock diff --git a/printer_zpl2/tests/test_wizard_import_zpl2.py b/printer_zpl2/tests/test_wizard_import_zpl2.py index ce1a8e3..3360b53 100644 --- a/printer_zpl2/tests/test_wizard_import_zpl2.py +++ b/printer_zpl2/tests/test_wizard_import_zpl2.py @@ -1,3 +1,4 @@ +# Copyright (C) 2018 Florent Mirieu () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo.tests.common import TransactionCase diff --git a/printer_zpl2/views/printing_label_zpl2.xml b/printer_zpl2/views/printing_label_zpl2.xml index d22cea1..89c6e78 100644 --- a/printer_zpl2/views/printing_label_zpl2.xml +++ b/printer_zpl2/views/printing_label_zpl2.xml @@ -1,4 +1,4 @@ - +