Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
107 changes: 107 additions & 0 deletions product_label_template/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
======================
Product Label Template
======================

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

.. |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-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-Quartile%2Frbkk--custom-lightgray.png?logo=github
:target: https://github.com/Quartile/rbkk-custom/tree/18.0/product_label_template
:alt: Quartile/rbkk-custom

|badge1| |badge2| |badge3|

This module lets you define, per product, a label template that
positions the lot/serial number, a QR code and a barcode at exact
coordinates over a label background image.

The barcode encodes the lot/serial number (Code128, the same barcode as
the one printed by the standard *Lot/Serial Numbers* label), and its
size and position on the label are fully configurable.

It adds a **Product Label** print action to lots/serial numbers, so the
label can be printed from the standard *Lot/Serial Numbers > Print*
menu, using the paper format configured on the product's label template.

**Table of contents**

.. contents::
:local:

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

Go to *Inventory > Configuration > Products > Product Label Templates*
and create/maintain a template per product. The template can also be
maintained from the *Label Templates* tab of the product variant form.

Product Label Template settings:

- **Paper Format**: paper format used to print the PDF with.
- **Conversion Coefficient**: environment-dependent parameter to
convert the input values (cm) to the actual printed length, taking
the dpi setting into account.
- **Product Label**: label background image.
- **Label Width / Label Height**: size of the printed label image (in
cm).
- **Label Width/Height Margin**: margins on the right/bottom of the
label (in cm).
- **Font Size**: size of the printed text (in cm).
- **Width/Height Padding (Lot)**: position of the lot/serial number
from the left/top of the label (in cm).
- **With QR Code**: whether a QR code (of the lot/serial number) is
printed, with its own size and left/top position.
- **With Barcode**: whether a barcode (Code128 of the lot/serial
number) is printed, with its own width, height and left/top position.

Usage
=====

Go to *Inventory > Products > Lots/Serial Numbers*, select one or more
lots/serial numbers, then use *Print > Product Label*. The label is
rendered from the label template configured on each lot's product.

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

Bugs are tracked on `GitHub Issues <https://github.com/Quartile/rbkk-custom/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/Quartile/rbkk-custom/issues/new?body=module:%20product_label_template%0Aversion:%2018.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
-------

* Quartile

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

- `Quartile <https://www.quartile.co>`__:

- Tim
- Yoshi Tashiro
- Tack Yabe

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

This module is part of the `Quartile/rbkk-custom <https://github.com/Quartile/rbkk-custom/tree/18.0/product_label_template>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions product_label_template/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
19 changes: 19 additions & 0 deletions product_label_template/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2021 Quartile (https://www.quartile.co)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
{
"name": "Product Label Template",
"version": "18.0.1.0.0",
"author": "Quartile",
"website": "https://www.quartile.co",
"category": "Inventory",
"license": "LGPL-3",
"depends": ["stock"],
"data": [
"security/ir.model.access.csv",
"views/ir_actions_report_views.xml",
"views/product_label_template_views.xml",
"views/product_product_views.xml",
"reports/product_label_report.xml",
],
"installable": True,
}
Loading
Loading