Hi,
I found a way to do it on version 13 and 14. which are using jinja hook
The barcode / qrcode is printed both on app/print and full preview and pdf also.
Dont need to save the image on tables, just generate the barcode in external python module access
via hook.py setup , we need to install python library for barcode/qrcode and mention in custom-app/requirements.txt and do bench install requirements.
hooks.py
version 13:
jenv = {
}
version-14:
jinja = {
“methods”: [
“custom_app.directory.file.method”,
]
}
Thanks and regards,
Aditya