mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[IMP] print_zpl2 : quick move
This commit is contained in:
committed by
mreficent
parent
7c10f698ba
commit
be18cfda93
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user