[IMP] print_zpl2 : quick move

This commit is contained in:
Florent de Labarre
2020-03-05 20:41:33 +01:00
committed by Lois Rilo
parent 6bb38387f7
commit f920445f6a
8 changed files with 320 additions and 135 deletions

View File

@@ -232,3 +232,19 @@ class PrintingLabelZpl2Component(models.Model):
help="This field holds a static image to print. "
"If not set, the data field is evaluated.",
)
def action_plus_origin_x(self):
self.ensure_one()
self.origin_x += 10
def action_minus_origin_x(self):
self.ensure_one()
self.origin_x -= 10
def action_plus_origin_y(self):
self.ensure_one()
self.origin_y += 10
def action_minus_origin_y(self):
self.ensure_one()
self.origin_y -= 10