mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
Apply dotfiles
This commit is contained in:
@@ -63,9 +63,7 @@ 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")
|
||||
|
||||
@@ -359,9 +359,7 @@ class Zpl2(object):
|
||||
def _field_data(self, data):
|
||||
"""Add data to the buffer, between start and stop commands"""
|
||||
command = "{start}{data}{stop}".format(
|
||||
start=self._field_data_start(),
|
||||
data=data,
|
||||
stop=self._field_data_stop(),
|
||||
start=self._field_data_start(), data=data, stop=self._field_data_stop(),
|
||||
)
|
||||
return command
|
||||
|
||||
@@ -500,11 +498,9 @@ class Zpl2(object):
|
||||
bytes_per_row = rounded_width / 8
|
||||
total_bytes = bytes_per_row * height
|
||||
graphic_image_command = (
|
||||
"^GFA,{total_bytes},{total_bytes},{bytes_per_row},{ascii_data}".format(
|
||||
total_bytes=total_bytes,
|
||||
bytes_per_row=bytes_per_row,
|
||||
ascii_data=ascii_data,
|
||||
)
|
||||
"^GFA,{total_bytes},{total_bytes},{bytes_per_row},{ascii_data}"
|
||||
).format(
|
||||
total_bytes=total_bytes, bytes_per_row=bytes_per_row, ascii_data=ascii_data,
|
||||
)
|
||||
# Generate the ZPL II command
|
||||
command = "{origin}{data}{stop}".format(
|
||||
|
||||
Reference in New Issue
Block a user