| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 3480 |
| Technical Name |
oer_product_label_pro |
| License | LGPL-3 |
| Website | https://www.oduers.com/ |
OER Product Label Pro
Dynamic Style Builder, Dynamic Grid Templates, and Relational Field Mappings
1. Introduction
The OER Product Label Pro module extends the label generation package with a customizable WYSIWYG style builder, custom dimension grids, and relational field mappings. It empowers administrators to design custom, professional label templates containing dynamic barcode symbologies, promotional prices, logos, and custom notes, all without writing a single line of QWeb XML code.
2. Installation
To install the Pro module:
- Ensure the base
product_label_oermodule is active. - Place the
oer_product_label_proaddon folder inside your Odoo custom addons directory. - Navigate to Apps, click Update Apps List, and search for OER Product Label Pro.
- Click Activate.
3. Configuration Settings
Company Settings
Go to Settings ‣ Inventory / Products:
- Preview Product Type: Choose between a static Demo Product and the active Real Product during design previewing.
- Demo Pricelists: Configure price maps used during designer rendering previews.
User Options
Go to Settings ‣ Users ‣ OER Labels:
- Default Template: Set the default design layout for the current user.
- Allowed Templates: Restrict users to specific styles. Leave empty to allow all.
- Immediate Printing: Enable printing directly to the browser view.
4. Main Features
- Relational Fields L1/L2: Bind sections to related columns (e.g.
product_variant_id.product_tmpl_id.categ_id.name). - Visual Highlights & Grid Sizing: Build labels using accurate dimensions, margins, paddings, rows, columns, and gaps.
- Barcodes & QR Codes: Generate EAN8, EAN13, Code128, DataMatrix, or QR codes with automatic absolute path redirects.
- Live visual HTML Preview: Dynamic rendering panel shows layout modifications instantly.
5. How to Use
- Go to Settings ‣ Technical ‣ Reporting ‣ Label Templates.
- Click New Template to launch the template configuration wizard.
- Fill out sheet sizes, grid columns, rows, margins, and gaps. Click Create Design Template.
- Add Design Sections. Select types (Text, Model Field, Price, QR, etc.) and configure fonts, alignment, border width, and text colors.
- Enable Live Preview at the top to check spacing as you design.
6. Reports & QWeb Hook
The template configurations compile to clean HTML styles at print time. The module registers an abstract report class:
report.product_label_oer.qweb_custom_design_placeholder
This abstract model serves as a bridge, mapping layout parameters (e.g. cols, rows, label_style, skip_places) from the print actions to the QWeb rendering context.
7. Access Rights & Restrictions
Only system administrators (group base.group_system) have access to define and modify templates or template sections. Normal employees are restricted to choosing allowed templates during print jobs.
8. FAQ
Q: Can I use raw HTML inside my custom template sections?
A: Yes. Use the HTML Template widget inside a text or field section and insert standard HTML tags.
9. Troubleshooting
KeyError: 'data' during print action
Ensure that all addon upgrades are completed properly. This error indicates that the abstract model bridge is missing or needs to be registered via a module update (-u oer_product_label_pro).
10. Conclusion
The OER Product Label Pro module transforms Odoo into an extensible, high-fidelity labeling workshop.
Please log in to comment on this module