Repository navigation
Version-1
Release Notes
New Features
1. Jinja Functions for Print Formats
Developers can now use custom Jinja functions inside print formats. These functions are auto-loaded through the app configuration.
Available Jinja Functions
qr(value)— Generate a QR code image.barcode(value)— Generate a barcode image.qr_link(value)— Generate a QR code leading to a URL.
Add them inside print formats like:
{{ qr(doc.name) }}
{{ barcode(doc.item_code) }}
{{ qr_link(doc.uuid) }}2. Global JS Function to Add QR Codes to Any Field
A global JavaScript function add_qr_to_description(frm, fieldname, value) is now available. It allows developers to auto-generate QR codes inside description areas of fields.
Enhancements
- Cleaner integration for QR + Barcode utilities.
- Better compatibility with standard and custom print formats.
- Simplified developer onboarding experience.
Installation
bench get-app scan_me https://github.com/Tusharp21/scan-me.git
bench --site yoursite install-app scan_me
Developer Notes
- Jinja methods auto-load via
hooks.py. - Global JS utilities loaded via
hooks.py→app_include_js. - QR generation works in desk forms and print formats.
Known Limitations
- Requires setup doctype for generate_qr button.
- Field must have a description for auto QR display.
Future Plans
- Direct QR scanning (camera integration) inside Desk.
- Add digital signed document printing feature.
- PDF-safe QR rendering for all types of print engines.
- More Jinja helpers (signature, stamp, NFC link, etc.)
Jinja Functions
This release includes global Jinja functions for generating QR codes, barcodes, and document QR links inside custom Print Formats.
Included Functions
qr()– Generate QR for any text or valueqr_link()– Generate QR that links to a Frappe documentbarcode()– Generate barcodes of multiple supported types
Notes
Developers can refer to the full documentation or README for usage examples. Detailed code examples are intentionally excluded from the release notes.
Full Changelog: https://github.com/Tusharp21/scan-me/commits/v1.0.0