[MIG][11.0] printer_zpl2

This commit is contained in:
Florent de Labarre
2018-01-23 01:24:26 +01:00
committed by mreficent
parent 88561fe7c8
commit 9a8b2e7af9
13 changed files with 150 additions and 149 deletions

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2016 SYLEAM (<http://www.syleam.fr>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2016 SYLEAM (<http://www.syleam.fr>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
@@ -38,7 +37,6 @@ class PrintRecordLabel(models.TransientModel):
return values
@api.multi
def print_label(self):
""" Prints a label per selected record """
record_model = self.env.context['active_model']

View File

@@ -13,7 +13,10 @@
<field name="printer_id"/>
<field name="label_id"/>
</group>
<button string="Print Label" type="object" name="print_label"/>
<footer>
<button type="special" special="cancel" string="Cancel"/>
<button string="Print label" type="object" name="print_label" class="oe_highlight"/>
</footer>
</form>
</field>
</record>