From 897337dec2ed3a1268c04c2809a8ffeb50ee3bab Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Thu, 29 Mar 2018 13:28:46 -0600 Subject: [PATCH] [FIX] Encoding and copyrights --- printer_zpl2/tests/test_generate_action.py | 1 + printer_zpl2/tests/test_printing_label_zpl2.py | 4 ++-- printer_zpl2/tests/test_test_mode.py | 1 + printer_zpl2/tests/test_wizard_import_zpl2.py | 1 + printer_zpl2/views/printing_label_zpl2.xml | 2 +- printer_zpl2/wizard/print_record_label.xml | 2 +- printer_zpl2/wizard/wizard_import_zpl2.py | 7 +++++-- printer_zpl2/wizard/wizard_import_zpl2.xml | 2 +- 8 files changed, 13 insertions(+), 7 deletions(-) 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 @@ - +