odoo12-addon-printer-zpl2


Nameodoo12-addon-printer-zpl2 JSON
Version 12.0.1.1.0 PyPI version JSON
download
home_pagehttp://www.syleam.fr/
SummaryPrinter ZPL II
upload_time2021-11-29 10:23:24
maintainer
docs_urlNone
authorSUBTENO-IT, FLorent de Labarre, Apertoso NV, Odoo Community Association (OCA)
requires_python>=3.5
licenseAGPL-3
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
   :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
   :alt: License: AGPL-3

=====================
ZPL II Label printing
=====================

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.

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

Nothing special, just install the module.

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

To configure this module, you need to:

#. Go to *Settings > Printing > Labels > ZPL II*
#. Create new labels
#. Import ZPL2 code
#. 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.

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

Known issues / Roadmap
======================

* Develop a "Designer" view in a separate module, to allow drawing labels with simple mouse clicks/drags

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 smashing it by providing a detailed and welcomed feedback.

Credits
=======

Images
------

* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.

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

* Sylvain Garancher <sylvain.garancher@syleam.fr>
* Florent de Labarre
* Jos De Graeve <Jos.DeGraeve@apertoso.be>

Maintainer
----------

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

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.



            

Raw data

            {
    "_id": null,
    "home_page": "http://www.syleam.fr/",
    "name": "odoo12-addon-printer-zpl2",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.5",
    "maintainer_email": "",
    "keywords": "",
    "author": "SUBTENO-IT, FLorent de Labarre, Apertoso NV, Odoo Community Association (OCA)",
    "author_email": "support@odoo-community.org",
    "download_url": "",
    "platform": "",
    "description": ".. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg\n   :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n   :alt: License: AGPL-3\n\n=====================\nZPL II Label printing\n=====================\n\nThis module extends the **Report to printer** (``base_report_to_printer``)\nmodule to add a ZPL II label printing feature.\n\nThis module is meant to be used as a base for module development, and does not provide a GUI on its own.\nSee below for more details.\n\nInstallation\n============\n\nNothing special, just install the module.\n\nConfiguration\n=============\n\nTo configure this module, you need to:\n\n#. Go to *Settings > Printing > Labels > ZPL II*\n#. Create new labels\n#. Import ZPL2 code\n#. Use the Test Mode tab during the creation\n\nIt's also possible to add a label printing wizard on any model by creating a new *ir.actions.act_window* record.\nFor example, to add the printing wizard on the *product.product* model ::\n\n    <act_window id=\"action_wizard_purchase\"\n      name=\"Print Label\"\n      src_model=\"product.product\"\n      res_model=\"wizard.print.record.label\"\n      view_mode=\"form\"\n      target=\"new\"\n      key2=\"client_action_multi\"/>\n\nUsage\n=====\n\nTo print a label, you need to call use the label printing method from anywhere (other modules, server actions, etc.).\n\nExample : Print the label of a product ::\n\n    self.env['printing.label.zpl2'].browse(label_id).print_label(\n        self.env['printing.printer'].browse(printer_id),\n        self.env['product.product'].browse(product_id))\n\nYou can also use the generic label printing wizard, if added on some models.\n\n.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas\n   :alt: Try me on Runbot\n   :target: https://runbot.odoo-community.org/runbot/144/12.0\n\nKnown issues / Roadmap\n======================\n\n* Develop a \"Designer\" view in a separate module, to allow drawing labels with simple mouse clicks/drags\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues\n<https://github.com/OCA/report-print-send/issues>`_. In case of trouble, please\ncheck there if your issue has already been reported. If you spotted it first,\nhelp us smashing it by providing a detailed and welcomed feedback.\n\nCredits\n=======\n\nImages\n------\n\n* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.\n\nContributors\n------------\n\n* Sylvain Garancher <sylvain.garancher@syleam.fr>\n* Florent de Labarre\n* Jos De Graeve <Jos.DeGraeve@apertoso.be>\n\nMaintainer\n----------\n\n.. image:: https://odoo-community.org/logo.png\n   :alt: Odoo Community Association\n   :target: https://odoo-community.org\n\nThis module is maintained by the OCA.\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\nTo contribute to this module, please visit https://odoo-community.org.\n\n\n",
    "bugtrack_url": null,
    "license": "AGPL-3",
    "summary": "Printer ZPL II",
    "version": "12.0.1.1.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "187a29fbd190951f9fd3e2faa961563f2a916e7458127b3444025a461272589d",
                "md5": "f1f17e17e9d91d947074c446c4873cde",
                "sha256": "c19b887b5529f1997d123e1a54c8817d7f6be190e0632521df4b5bf47396cfa7"
            },
            "downloads": -1,
            "filename": "odoo12_addon_printer_zpl2-12.0.1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f1f17e17e9d91d947074c446c4873cde",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.5",
            "size": 127943,
            "upload_time": "2021-11-29T10:23:24",
            "upload_time_iso_8601": "2021-11-29T10:23:24.165849Z",
            "url": "https://files.pythonhosted.org/packages/18/7a/29fbd190951f9fd3e2faa961563f2a916e7458127b3444025a461272589d/odoo12_addon_printer_zpl2-12.0.1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-11-29 10:23:24",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "odoo12-addon-printer-zpl2"
}
        
Elapsed time: 0.13026s