Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] printer_zpl2: Migration to 17.0 #392

Merged
merged 75 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
ea041a1
[ADD] Add printer_zpl2 module (#66)
Apr 4, 2017
32afeeb
[MIG] Migrated printer_zpl2 to v10.0
Apr 4, 2017
000ec20
OCA Transbot updated translations from Transifex
oca-transbot May 13, 2017
17bdd75
allow to avoid 'Recall last saved values' command
JosDeGraeve Jun 14, 2017
e5f3d1d
OCA Transbot updated translations from Transifex
oca-transbot Jul 15, 2017
eae7397
[FIX] printer_zpl2: Bump version number
pedrobaeza Oct 2, 2017
44b285e
[FIX] printer_zpl2: Bump version
pedrobaeza Dec 6, 2017
bf1aa88
Added graphic image support
JosDeGraeve Nov 2, 2017
8de93cb
[IMP] Add QRcode in printer_zpl2 module
aurimukas Sep 6, 2017
c2dbc0a
[IMP] Allow to define a default printer for the printing wizard
fmdl Jan 22, 2018
055bd64
[IMP] Add missing tests for graphics ZPL2 feature
fmdl Jan 22, 2018
3e2bf53
[FIX] Add missing argument
fmdl Feb 7, 2018
f65905d
[MIG][11.0] printer_zpl2
fmdl Jan 23, 2018
306d535
[IMP] Add a Raw ZPL2 component
fmdl Jan 23, 2018
f2a6c0e
[IMP] Add a button to generate an action to launch the print wizard
fmdl Jan 22, 2018
28a821e
[IMP] Add diagonal lines management
Feb 13, 2018
6bac310
[IMP] Add a preview on the label using labelary.com
fmdl Jan 22, 2018
b02a35a
[IMP] Add wizard to import ZPL2
fmdl Jan 20, 2018
9971399
[IMP] Add a test mode to print a label on write
fmdl Jan 22, 2018
5697b5a
[FIX] Encoding and copyrights
max3903 Mar 29, 2018
e45261a
[IMP] Buttons
max3903 Mar 29, 2018
d69e0b4
Update printing_label_zpl2.xml
max3903 Mar 30, 2018
f5004ec
[UPD] Update printer_zpl2.pot
oca-travis Jun 21, 2018
a083c5d
Translated using Weblate (Spanish)
etobella Nov 13, 2018
99e7d2b
[MIG] printer_zpl2: Migration to 12.0
fmdl Mar 20, 2019
5f13b17
[FIX] printer_zpl2: QR as bytes
etobella Mar 12, 2019
4b91bd1
[ADD] icon.png
OCA-git-bot Jun 6, 2019
4b2590f
[UPD] Update printer_zpl2.pot
oca-travis Jun 6, 2019
7019a98
Update translation files
oca-transbot Jun 16, 2019
f8873d9
[MIG] printer_zpl2: Migration to 13.0
schout-it Sep 30, 2019
500772b
[MIG] printer_zpl2 to v13 (continue)
AaronHForgeFlow Mar 5, 2020
3b1253a
[IMP] print_zpl2 : quick move
fmdl Mar 5, 2020
89f1e8b
[MIG] printer_zpl2 to v13 (end)
MiquelRForgeFlow Jun 30, 2020
09e6cd0
[UPD] Update printer_zpl2.pot
oca-travis Sep 3, 2020
b25f31c
[UPD] README.rst
OCA-git-bot Sep 3, 2020
cd1d1f8
Update translation files
oca-transbot Oct 27, 2020
834c85d
Added translation using Weblate (Spanish (Argentina))
ibuioli Nov 16, 2020
dbbe44c
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 16, 2020
83f7068
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 19, 2020
c4ab365
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 19, 2020
e5e60f6
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 21, 2020
96395a6
[13.0][FIX] printer_zpl2: pylint disable fix
Dec 15, 2020
5a4440a
printer_zpl2 13.0.1.0.1
OCA-git-bot Dec 15, 2020
c3a6fe7
[IMP] printer_zpl2: black, isort, prettier
LoisRForgeFlow Nov 12, 2021
237fc4a
[14.0][MIG] printer_zpl2
LoisRForgeFlow Nov 12, 2021
646142d
[UPD] Update printer_zpl2.pot
oca-travis Nov 17, 2021
33d5e64
[UPD] README.rst
OCA-git-bot Nov 17, 2021
987a4e9
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 31, 2022
2c97284
[IMP] printer_zpl2: Include library inside the module
Sep 9, 2022
1503ed3
[FIX] printer_zpl2: Adapt code about having the library embedded
pedrobaeza Sep 9, 2022
02da351
printer_zpl2 14.0.2.0.0
OCA-git-bot Oct 2, 2022
4319686
[15.0][MIG] printer_zpl2: Migration to 15.0
duyanhk15 Oct 28, 2022
08393cf
printer_zpl2: lint
sebalix Dec 8, 2022
e22b376
[IMP] printer_zpl2: add lines in wizard
MiquelRForgeFlow Jul 5, 2022
f3e77f5
[UPD] Update printer_zpl2.pot
Feb 22, 2023
e6b7a49
[UPD] README.rst
OCA-git-bot Feb 22, 2023
79c0ade
Update translation files
weblate Feb 22, 2023
1b894d5
Translated using Weblate (Italian)
francesco-ooops Mar 21, 2023
ce5b1e3
Translated using Weblate (Italian)
mymage Mar 23, 2023
fea2b41
[FIX] printer zpl2: add missing acl
fmdl Mar 29, 2023
8f66be1
[16.0][MIG] printer_zpl2: Migration to 16.0
Jul 13, 2023
9ffc999
[UPD] Update printer_zpl2.pot
Sep 11, 2023
4a05503
[UPD] README.rst
OCA-git-bot Sep 11, 2023
88378c5
Update translation files
weblate Sep 20, 2023
083b2af
Update translation files
weblate Sep 20, 2023
e395ed2
Translated using Weblate (Spanish)
Ivorra78 Sep 27, 2023
07231e9
Update translation files
weblate Oct 9, 2023
e2a963f
Translated using Weblate (Italian)
mymage Jan 16, 2024
8bba02f
Translated using Weblate (Italian)
mymage Jan 16, 2024
ba36ed6
Translated using Weblate (Italian)
mymage Apr 4, 2024
b3dd120
Translated using Weblate (Italian)
mymage Jul 16, 2024
be58c4a
[FIX] printer_zpl2: Do use colspan=2 for the ace widget fields so you…
wpichler Dec 6, 2023
13dac1b
[BOT] post-merge updates
OCA-git-bot Oct 7, 2024
d3825ca
[IMP] printer_zpl2: pre-commit auto fixes
DonatasV Feb 26, 2025
77f8599
[MIG] printer_zpl2: Migration to 17.0
DonatasV Feb 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 152 additions & 0 deletions printer_zpl2/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
==============
Printer ZPL II
==============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0205041d24095e143639c6bde7b129dfb5c1afd149df42cceeb9f0908db36673
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
: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/17.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-17-0/report-print-send-17-0-printer_zpl2
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/report-print-send&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the **Report to printer**
(``base_report_to_printer``) module to add a ZPL II label printing
feature.

This module is meant to be used as a base for module development, and
does not provide a GUI on its own. See below for more details.

**Table of contents**

.. contents::
:local:

Installation
============

Nothing special, just install the module.

Configuration
=============

To configure this module, you need to:

1. Go to *Settings > Printing > Labels > ZPL II*
2. Create new labels
3. Import ZPL2 code
4. Use the Test Mode tab during the creation

It's also possible to add a label printing wizard on any model by
creating a new *ir.actions.act_window* record. For example, to add the
printing wizard on the *product.product* model :

::

<act_window id="action_wizard_purchase"
name="Print Label"
src_model="product.product"
res_model="wizard.print.record.label"
view_mode="form"
target="new"
key2="client_action_multi"/>

Usage
=====

To print a label, you need to call use the label printing method from
anywhere (other modules, server actions, etc.).

Example : Print the label of a product :

::

self.env['printing.label.zpl2'].browse(label_id).print_label(
self.env['printing.printer'].browse(printer_id),
self.env['product.product'].browse(product_id))

You can also use the generic label printing wizard, if added on some
models.

|Try me on Runbot|

.. |Try me on Runbot| image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:target: https://runbot.odoo-community.org/runbot/144/12.0

Changelog
=========

13.0.1.0.0 (2019-09-30)
-----------------------

- [RELEASE] Port from V12.
- Selection lists do not support integers any longer
- Binary field now returns False when empty instead of none, change
tests to reflect this
- work around an appels vs oranges warning

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/report-print-send/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/report-print-send/issues/new?body=module:%20printer_zpl2%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* SUBTENO-IT
* FLorent de Labarre
* Apertoso NV

Contributors
------------

- Sylvain Garancher <[email protected]>
- Florent de Labarre
- Jos De Graeve <[email protected]>
- Rod Schouteden <[email protected]>
- Miquel Raïch <[email protected]>
- Lois Rilo <[email protected]>
- Tran Quoc Duong <[email protected]>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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 <https://github.com/OCA/report-print-send/tree/17.0/printer_zpl2>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions printer_zpl2/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (C) 2016 SUBTENO-IT (<https://subteno-it.fr>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
from . import wizard
21 changes: 21 additions & 0 deletions printer_zpl2/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (C) 2016-2022 SUBTENO-IT (<https://subteno-it.fr>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Printer ZPL II",
"version": "17.0.1.0.0",
"category": "Printer",
"summary": "Add a ZPL II label printing feature",
"author": "SUBTENO-IT, FLorent de Labarre, "
"Apertoso NV, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/report-print-send",
"license": "AGPL-3",
"depends": ["base_report_to_printer"],
"data": [
"security/ir.model.access.csv",
"views/printing_label_zpl2.xml",
"wizard/print_record_label.xml",
"wizard/wizard_import_zpl2.xml",
],
"installable": True,
}
Loading