diff --git a/printer_zpl2/README.rst b/printer_zpl2/README.rst index 912d503..1eb6908 100644 --- a/printer_zpl2/README.rst +++ b/printer_zpl2/README.rst @@ -14,14 +14,14 @@ Printer ZPL II :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freport--print--send-lightgray.png?logo=github - :target: https://github.com/OCA/report-print-send/tree/14.0/printer_zpl2 + :target: https://github.com/OCA/report-print-send/tree/15.0/printer_zpl2 :alt: OCA/report-print-send .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/report-print-send-14-0/report-print-send-14-0-printer_zpl2 + :target: https://translation.odoo-community.org/projects/report-print-send-15-0/report-print-send-15-0-printer_zpl2 :alt: Translate me on Weblate -.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/144/14.0 - :alt: Try me on Runbot +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/report-print-send&target_branch=15.0 + :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -97,7 +97,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -134,6 +134,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/report-print-send `_ project on GitHub. +This module is part of the `OCA/report-print-send `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/printer_zpl2/__manifest__.py b/printer_zpl2/__manifest__.py index ec02765..e8b5c8c 100644 --- a/printer_zpl2/__manifest__.py +++ b/printer_zpl2/__manifest__.py @@ -1,9 +1,9 @@ -# Copyright (C) 2016 SUBTENO-IT () +# Copyright (C) 2016-2022 SUBTENO-IT () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Printer ZPL II", - "version": "14.0.2.0.0", + "version": "15.0.1.0.0", "category": "Printer", "summary": "Add a ZPL II label printing feature", "author": "SUBTENO-IT, FLorent de Labarre, " diff --git a/printer_zpl2/models/__init__.py b/printer_zpl2/models/__init__.py index 4263857..69d41d1 100644 --- a/printer_zpl2/models/__init__.py +++ b/printer_zpl2/models/__init__.py @@ -1,5 +1,5 @@ # Copyright (C) 2016 SYLEAM () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from . import printing_label_zpl2_component from . import printing_label_zpl2 +from . import printing_label_zpl2_component diff --git a/printer_zpl2/models/printing_label_zpl2.py b/printer_zpl2/models/printing_label_zpl2.py index e9e5e9b..4048c31 100644 --- a/printer_zpl2/models/printing_label_zpl2.py +++ b/printer_zpl2/models/printing_label_zpl2.py @@ -69,7 +69,7 @@ class PrintingLabelZpl2(models.Model): test_print_mode = fields.Boolean(string="Mode Print") test_labelary_mode = fields.Boolean(string="Mode Labelary") record_id = fields.Integer(string="Record ID", default=1) - extra = fields.Text(string="Extra", default="{}") + extra = fields.Text(default="{}") printer_id = fields.Many2one(comodel_name="printing.printer", string="Printer") labelary_image = fields.Binary( string="Image from Labelary", compute="_compute_labelary_image" @@ -123,10 +123,8 @@ class PrintingLabelZpl2(models.Model): def _get_component_data(self, record, component, eval_args): if component.data_autofill: - data = component.autofill_data(record, eval_args) - else: - data = component.data - return safe_eval(str(data), eval_args) or "" + return component.autofill_data(record, eval_args) + return safe_eval(str(component.data), eval_args) or "" def _get_to_data_to_print( self, diff --git a/printer_zpl2/static/description/index.html b/printer_zpl2/static/description/index.html index 561c610..ba29649 100644 --- a/printer_zpl2/static/description/index.html +++ b/printer_zpl2/static/description/index.html @@ -3,7 +3,7 @@ - + Printer ZPL II