[IMP] printer_zpl2: black, isort, prettier

This commit is contained in:
Lois Rilo
2021-11-12 16:07:29 +01:00
parent 82339dc54c
commit a0cfe386ab
6 changed files with 17 additions and 7 deletions

View File

@@ -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")

View File

@@ -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()

View File

@@ -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(

View File

@@ -1,2 +1,3 @@
# generated from manifests external_dependencies
pycups
zpl2

View File

@@ -0,0 +1 @@
../../../../printer_zpl2

View File

@@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)