Skip to content

Commit

Permalink
Merge PR OCA#319 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Mar 29, 2023
2 parents 08c198c + 85f26e3 commit 4f84964
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
25 changes: 15 additions & 10 deletions printer_zpl2/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <etobella@creublanca.es>\n"
"PO-Revision-Date: 2022-02-15 11:16+0000\n"
"Last-Translator: Olga Marco Puértolas <olga.marco@creublanca.es>\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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions printer_zpl2/wizard/print_record_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -56,3 +58,11 @@ def print_label(self):
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")
1 change: 1 addition & 0 deletions printer_zpl2/wizard/print_record_label.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
/>
<field name="active_model_id" invisible="1" />
</group>
<field name="model" invisible="1" />
<footer>
<button type="special" special="cancel" string="Cancel" />
<button
Expand Down

0 comments on commit 4f84964

Please sign in to comment.