diff --git a/printer_zpl2/models/printing_label_zpl2.py b/printer_zpl2/models/printing_label_zpl2.py index 216e05c..92ecd3a 100644 --- a/printer_zpl2/models/printing_label_zpl2.py +++ b/printer_zpl2/models/printing_label_zpl2.py @@ -66,7 +66,9 @@ class PrintingLabelZpl2(models.Model): default=True, ) action_window_id = fields.Many2one( - comodel_name="ir.actions.act_window", string="Action", readonly=True, + comodel_name="ir.actions.act_window", + string="Action", + readonly=True, ) test_print_mode = fields.Boolean(string="Mode Print") test_labelary_mode = fields.Boolean(string="Mode Labelary") diff --git a/printer_zpl2/tests/test_printing_label_zpl2.py b/printer_zpl2/tests/test_printing_label_zpl2.py index 2d1f092..3a9dcd9 100644 --- a/printer_zpl2/tests/test_printing_label_zpl2.py +++ b/printer_zpl2/tests/test_printing_label_zpl2.py @@ -134,7 +134,7 @@ class TestPrintingLabelZpl2(TransactionCase): ) def test_repeatable_component_label_fixed_contents(self): - """ Check contents of a repeatable label component + """Check contents of a repeatable label component Check that a fixed value is repeated each time """ @@ -193,7 +193,7 @@ class TestPrintingLabelZpl2(TransactionCase): ) def test_repeatable_component_label_iterable_contents(self): - """ Check contents of a repeatable label component + """Check contents of a repeatable label component Check that an iterable contents (list, tuple, etc.) is browsed If the repeat_count is higher than the value length, all values are @@ -247,7 +247,7 @@ class TestPrintingLabelZpl2(TransactionCase): ) def test_repeatable_component_label_iterable_offset(self): - """ Check contents of a repeatable label component with an offset + """Check contents of a repeatable label component with an offset Check that an iterable contents (list, tuple, etc.) is browsed If the repeat_count is higher than the value length, all values are @@ -777,7 +777,7 @@ class TestPrintingLabelZpl2(TransactionCase): ) def test_code49_barcode_label_contents_with_above(self): - """ Check contents of a code 49 barconde label + """Check contents of a code 49 barconde label with interpretation line above """ label = self.new_label() diff --git a/printer_zpl2/tests/test_wizard_print_record_label.py b/printer_zpl2/tests/test_wizard_print_record_label.py index 1babfaa..7400cbc 100644 --- a/printer_zpl2/tests/test_wizard_print_record_label.py +++ b/printer_zpl2/tests/test_wizard_print_record_label.py @@ -51,7 +51,7 @@ class TestWizardPrintRecordLabel(TransactionCase): cups.Connection().printFile.assert_called_once() def test_wizard_multiple_printers_and_labels(self): - """ Check that printer_id and label_id are not automatically filled + """Check that printer_id and label_id are not automatically filled when there are multiple possible values """ self.env["printing.printer"].create( @@ -85,7 +85,7 @@ class TestWizardPrintRecordLabel(TransactionCase): self.assertEqual(values.get("label_id", False), False) def test_wizard_multiple_labels_but_on_different_models(self): - """ Check that label_id is automatically filled when there are multiple + """Check that label_id is automatically filled when there are multiple labels, but only one on the right model """ self.env["printing.label.zpl2"].create( diff --git a/requirements.txt b/requirements.txt index 3426931..f1fc07a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ # generated from manifests external_dependencies pycups +zpl2 diff --git a/setup/printer_zpl2/odoo/addons/printer_zpl2 b/setup/printer_zpl2/odoo/addons/printer_zpl2 new file mode 120000 index 0000000..a6713eb --- /dev/null +++ b/setup/printer_zpl2/odoo/addons/printer_zpl2 @@ -0,0 +1 @@ +../../../../printer_zpl2 \ No newline at end of file diff --git a/setup/printer_zpl2/setup.py b/setup/printer_zpl2/setup.py new file mode 100644 index 0000000..28c57bb --- /dev/null +++ b/setup/printer_zpl2/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)