QR Code Mixin
by OpenSynergy Indonesia https://simetri-sinergi.id , PT. Simetri Sinergi Indonesia https://simetri-sinergi.id
Odoo
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Community Apps Dependencies | Show |
| Lines of code | 341 |
| Technical Name |
ssi_qr_code_mixin |
| License | AGPL-3 |
| Website | https://simetri-sinergi.id |
QR Code Mixin
ssi_qr_code_mixin provides an abstract Odoo model — mixin.qr_code — that adds a computed QR-code image to any model.
Any model that inherits from mixin.qr_code automatically gains:
- qr_image (Binary) — a computed QR-code image in PNG format encoded as Base64.
- Content strategy per model configured via the extended ir.model: either use the standard web URL of the record, or supply custom Python code that builds the string to encode.
- Optional automatic injection of a QR-code page into the form view (enabled by setting _qr_code_create_page = True on the subclass).
The module depends on the qrcode Python library (listed in requirements.txt) and on ssi_decorator for view injection.
Installation
To install this module, you need to:
- Clone the branch 14.0 of the repository https://github.com/open-synergy/ssi-mixin
- Add the path to this repository in your configuration (addons-path)
- Update the module list (Must be on developer mode)
- Go to menu Apps -> Apps -> Main Apps
- Search For QR Code Mixin
- Install the module
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smash it by providing detailed and welcomed feedback.
Credits
Contributors
- Andhitia Rama <andhitia.r@gmail.com>
- Michael Viriyananda <viriyananda.michael@gmail.com>
Maintainer
This module is maintained by the PT. Simetri Sinergi Indonesia.
Please log in to comment on this module