From 3f370e857711855294472efb01c2374f8518ef14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olga=20Marco=20Pu=C3=A9rtolas?= Date: Tue, 15 Feb 2022 09:06:24 +0000 Subject: [PATCH 1/2] Translated using Weblate (Spanish) Currently translated at 9.7% (19 of 195 strings) Translation: report-print-send-13.0/report-print-send-13.0-printer_zpl2 Translate-URL: https://translation.odoo-community.org/projects/report-print-send-13-0/report-print-send-13-0-printer_zpl2/es/ --- printer_zpl2/i18n/es.po | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/printer_zpl2/i18n/es.po b/printer_zpl2/i18n/es.po index dfa7a5c..b1610fd 100644 --- a/printer_zpl2/i18n/es.po +++ b/printer_zpl2/i18n/es.po @@ -9,15 +9,15 @@ msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-05-12 02:40+0000\n" -"PO-Revision-Date: 2018-11-14 22:21+0000\n" -"Last-Translator: Enric Tobella \n" +"PO-Revision-Date: 2022-02-15 11:16+0000\n" +"Last-Translator: Olga Marco Puértolas \n" "Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 3.2.2\n" +"X-Generator: Weblate 4.3.2\n" #. module: printer_zpl2 #: model:ir.model.fields.selection,name:printer_zpl2.selection__printing_label_zpl2_component__font__b @@ -112,42 +112,47 @@ msgstr "Archivado" #. module: printer_zpl2 #: model:ir.model.fields,field_description:printer_zpl2.field_printing_label_zpl2_component__data_autofill msgid "Autofill Data" -msgstr "" +msgstr "Autocompletar datos" #. module: printer_zpl2 #: model:ir.model.fields,field_description:printer_zpl2.field_printing_label_zpl2_component__bar_width_ratio msgid "Bar Width Ratio" -msgstr "" +msgstr "Relación de ancho de barra" #. module: printer_zpl2 #: model_terms:ir.ui.view,arch_db:printer_zpl2.view_printing_label_zpl2_form msgid "Barcode Format" -msgstr "" +msgstr "Formato de código de barras" #. module: printer_zpl2 #: model:ir.model.fields,help:printer_zpl2.field_printing_label_zpl2_component__model msgid "Barcode model, used by some barcode types like QR Code." msgstr "" +"Modelo de código de barras, utilizado por algunos tipos de códigos de barras " +"como el código QR." #. module: printer_zpl2 #: model:ir.model.fields.selection,name:printer_zpl2.selection__printing_label_zpl2_component__color__b msgid "Black" -msgstr "" +msgstr "Negro" #. module: printer_zpl2 #: model:ir.model.fields,field_description:printer_zpl2.field_printing_label_zpl2_component__block_lines +#, fuzzy msgid "Block Lines" -msgstr "" +msgstr "Líneas de bloqueo" #. module: printer_zpl2 #: model:ir.model.fields,field_description:printer_zpl2.field_printing_label_zpl2_component__block_spaces +#, fuzzy msgid "Block Spaces" -msgstr "" +msgstr "Bloquear espacios" #. module: printer_zpl2 #: model:ir.model.fields,field_description:printer_zpl2.field_printing_label_zpl2_component__block_width +#, fuzzy msgid "Block Width" -msgstr "" +msgstr "Ancho de bloque" #. module: printer_zpl2 #: model_terms:ir.ui.view,arch_db:printer_zpl2.view_wizard_import_zpl2_form From 85f26e3a7d1b840b269ec303b837195e0ebbcb6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miquel=20Ra=C3=AFch?= Date: Tue, 5 Jul 2022 15:43:30 +0200 Subject: [PATCH 2/2] [IMP] printer_zpl2: add lines in wizard --- printer_zpl2/wizard/print_record_label.py | 10 ++++++++++ printer_zpl2/wizard/print_record_label.xml | 1 + 2 files changed, 11 insertions(+) diff --git a/printer_zpl2/wizard/print_record_label.py b/printer_zpl2/wizard/print_record_label.py index 9a92930..2c12b5c 100644 --- a/printer_zpl2/wizard/print_record_label.py +++ b/printer_zpl2/wizard/print_record_label.py @@ -28,6 +28,8 @@ class PrintRecordLabel(models.TransientModel): string="Model", domain=lambda self: [("model", "=", self.env.context.get("active_model"))], ) + model = fields.Char(related="active_model_id.model", string="Model Name") + line_ids = fields.One2many("wizard.print.record.label.line", "label_header_id") @api.model def default_get(self, fields_list): @@ -56,3 +58,11 @@ class PrintRecordLabel(models.TransientModel): for record_id in self.env.context["active_ids"]: record = self.env[record_model].browse(record_id) self.label_id.print_label(self.printer_id, record) + + +class PrintRecordLabelLines(models.TransientModel): + _name = "wizard.print.record.label.line" + _description = "Print Record Label Line" + + label_no = fields.Integer(string="# labels") + label_header_id = fields.Many2one(comodel_name="wizard.print.record.label") diff --git a/printer_zpl2/wizard/print_record_label.xml b/printer_zpl2/wizard/print_record_label.xml index 3cfdfe2..817a782 100644 --- a/printer_zpl2/wizard/print_record_label.xml +++ b/printer_zpl2/wizard/print_record_label.xml @@ -17,6 +17,7 @@ /> +