Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Discuss (mail)
|
Lines of code | 158 |
Technical Name |
ks_binary_file_preview |
License | LGPL-3 |
Website | https://www.ksolves.com |
Versions | 12.0 13.0 14.0 15.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Discuss (mail)
|
Lines of code | 158 |
Technical Name |
ks_binary_file_preview |
License | LGPL-3 |
Website | https://www.ksolves.com |
Versions | 12.0 13.0 14.0 15.0 |
Document Preview
Document Preview saves time and storage of users as it allows them to preview the document without downloading it. This app can be used in all Odoo modules to display documents like PDF, image, video file format.
Hot Features
- Supports Multiple Files such as images, PDFs, and Videos
- Preview Files from Anywhere Inside the Odoo Module
Problems/Solutions
PROBLEM:
With the Odoo Module, no preview is available.
SOLUTION:
Document Preview offers a range of file formats such as image, PDF, audio, and Video to be displayed as a Preview.
PROBLEM:
The user had to view the preview in the Attachment (Technical) module.
SOLUTION:
This app lets the user preview in all Odoo modules.

Note:
Extensively Tested on Odoo Vanilla with Ubuntu OS
-
Works with custom binary fields.
-
Support Multiple File Formats.
- - File formats such as pdf, jpeg, gif, png, mp4.
HOW IT WORKS
-
If you’re adding the Binary Field to a new code or already working code, then add attachmnt=True in python model wherever you wish to add the field.
-
A button like ( ) will be visible beside all binary fields like shown in the image.
Frequently Asked Question
Yes, our app works with Odoo Enterprise as well as Community.
Yes, but you have to make the field Attachment = True.
It supports most of the file formats like pdf, jpeg, gif, png, mp4.
Please drop email at sales@ksolves.com or raise a ticket through Odoo store
itself.
Our Releases
15th
April, 2022
Latest Release 1.0.2
■ Enhancement - Allow access to preview the attachments for normal user.
04th
September, 2020
Release 1.0.1
■ Enhancement - Added Alerts if file can't be previewed.
Ksolves Suggested Apps

Ksolves Odoo Services


Odoo Implementation

Odoo Community Apps

Odoo Support & Maintenance

Odoo Customization

Odoo Integration Services

Odoo Developer Outsourcing
1800 121 0218
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedworks excellent - fast and good support
Ih ad the same issue as below and contacted support. The preview was enabled only for the admin user, but meanwhile they fixed that. Just enable the feature at the preview page of the user. Good job ksolves!
Re: works excellent - fast and good support
Thanks.
Team Ksolves!
How to set permissions so that ordinary users can preview attachments
I installed the app, but only admin users can preview the attachment. Ordinary users can't preview the attachment, they can only click to download it. How to set permissions so that ordinary users can preview attachments
Re: How to set permissions so that ordinary users can preview attachments
Hello Yourday,
Thank you for your review/ratings, we appreciate your support!
As of now we have provided the access rights to Superuser/Admin only who can preview the documents. However if you wish to customize it for your needs then we can help with also. Please drop us an email at doo.helpdesk@ksolves.com, and Technical Team will get in touch with you.
Thanks
Team Ksolves!
Installed Module and Whenever any window with attachment is opened, it shows error.
Re: Installed Module and Whenever any window with attachment is opened, it shows error.
Hi Arihant,
Can you please send us more details at sales@ksolves.com?
1. Odoo Version/ Edition 2. App Version
Also, if you have any screencast of the issue- it would really help us understand.
Best,
Ksolves
It works well with the new update
Problem: "I already installed the module on Odoo 13.0 and follow the steps, already click the icon 📄, but nothing happens and an error message show. Uncaught TypeError: Cannot read property 'modal' of undefined."
Answer: The Problem above already solved, Thank you very much for the effort and the hard works Ksolves.
Re: It works well with the new update
Hello Boby,
Thank you for your review/ratings, we appreciate your support!
Thanks
Team Ksolves!
The preview of the file can not be generated as it does not exist in the Odoo file system (Attachments).
Hello Ksolves,
I get this error when I press the preview icon: The preview of the file can not be generated as it does not exist in the Odoo file system (Attachments).
Re: The preview of the file can not be generated as it does not exist in the Odoo file system (Attachments).
Thanks for reaching out to us,
We have checked your concern and tried to reproduce the same but it is working as expected in our machine while pressing the preview icon.
The possible reason could be that it may be conflicting with any of your other custom modules or it may have not been installed properly.
So we recommend you kindly verify the same by downloading the latest zip file of Document Preview and try to install it in a brand new database where no custom module is present.
And if still getting the same issue then please provide us your test server access so that we can debug the cause of the issue and provide you with the optimal solution.
For any concerns or queries, please feel free to reach out to us at odoo.helpdesk@ksolves.in & sales@ksolves.com
Thanks,
Team Ksolves!
Hello Abhijeet,
Please find the below response for your concern:
We have checked your case and try to reproduced the same and it is working fine as expected from our end. Please check the attached video for your reference. It seems like that some of your custom addons conflicts with our application. So if you want you can check the functionality of our application you can check in fresh new database.
If still you facing the same issue then please share with us video and test server. So that we can check and provide you an optimal solution for same.
For any other concerns or queries, please feel free to reach out to us odoo.helpdesk@ksolves.in.
Regards,
Team Ksolves !
Hello Abhijeet,
Please find the below response for your concern:
We have checked your case and try to reproduced the same and it is working fine as expected from our end. Please check the attached video for your reference. It seems like that some of your custom addons conflicts with our application. So if you want you can check the functionality of our application you can check in fresh new database.
If still you facing the same issue then please share with us video and test server. So that we can check and provide you an optimal solution for same.
For any other concerns or queries, please feel free to reach out to us odoo.helpdesk@ksolves.in.
Regards,
Team Ksolves !
pdf preview not showing
console error:
worker_loader.js:71 Refused to execute script from 'http://localhost:8069/web/static/lib/pdfjs/src/shared/util.js' because its MIME type ('text/plain') is not executable.
(anonymous) @ worker_loader.js:71
worker_loader.js:71 Uncaught DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'http://localhost:8069/web/static/lib/pdfjs/src/shared/util.js' failed to load.
Re:
Hi Abhijeet,
Thanks for reaching to us. We noted your query. If you wish to share your further queries with us, please drop us an email at sales@ksolves.com along with screen shot or video of error & So. No. it will help us to raise HT accordingly.
Thanks,
Team Ksolves!
How to set the permission for ordinary users to preview attachments
I installed the app, but only admin users can preview the attachment. Ordinary users can't preview the attachment, they can only click to download it. How to set permissions so that ordinary users can preview attachments
please tell me how to do
Re: How to set the permission for ordinary users to preview attachments
Hello Yourday,
In regards to your query, as of now we have provided the access rights to Superuser/Admin only who can preview the documents.
If you wish to share your further queries & expectations with us, please drop us an email at doo.helpdesk@ksolves.com, and Technical Team will get in touch with you.
Thanks
Team Ksolves!
Hi,
Superuser only can preview the documents? or else any other options are available to preview by all users.
Thanks!
Re:
Hello Bhathu,
In regards to your query, as of now we have provided the access rights to Superuser/Admin only who can preview the documents.
If you wish to share your further queries & expectations with us, please drop us an email at doo.helpdesk@ksolves.com, and Technical Team will get in touch with you.
Thanks
Team Ksolves!
Preview permission issues
Hello, I have a question !
Why only roles with base.group_system permissions can be previewed, while others cannot be previewed?
Re: Preview permission issues
Hi,
Thanks for writing this to us and for showing interest in the module. In regards to your query. For now, we have provided the access rights to Admin only who can preview the documents.
If you wish to share your further queries with us, please drop us an email at sales@ksolves.com
Thanks
Team Ksolves!
Preview permission issues
Hello, I have a question !
Why only roles with base.group_system permissions can be previewed, while others cannot be previewed?
Re: Preview permission issues
Hi,
Thanks for writing this to us and for showing interest in the module. In regards to your query. For now, we have provided the access rights to Admin only who can preview the documents.
If you wish to share your further queries with us, please drop us an email at sales@ksolves.com
Thanks
Team Ksolves!
Very good app. Working in Odoo 13
I installed it in odoo 14 CE, works fine except for the button menu keep displayed on the front of preview. Hope you could do some work to make it fully work in Odoo 14.
Thank you.
Re: Very good app. Working in Odoo 13
Hi Joe,
Thanks for sharing your concern with us. Yes, for sure, we are already working on it to upgrade the same for V14 as well. Once the same will be launched over the Store, we shall keep you posted. In case of any further concerns, please feel free to get in touch with us at sales@ksolves.com. Thanks!
V13
doesn't work on Odoo 13. The icon appears but doesn't work
Re: V13
Hello Marwa,
We are extremely sorry for delay in response, as per out findings things are working as expected. If you wish to share your further queries & expectations with us, please drop us an email at doo.helpdesk@ksolves.com, and Technical Team will get in touch with you.
Team Ksolves!
Cannot read property 'modal' of undefined
I already installed the module on Odoo 13.0 and follow the steps, already click the icon 📄, but nothing happens and an error message show. Uncaught TypeError: Cannot read property 'modal' of undefined. I already sent this problem via email. please your feedback
Re: Cannot read property 'modal' of undefined
Hi Boby, thanks for sharing your concern, we will surely check the same and update you on the same. Thanks
Doesn't work on Attachments in Odoo 13.0?
I installed this on Odoo 13.0 but did not see any changes when I view attachments in the chatter. the attached files still download when clicked. Did I miss something? or does this need custom development for it work?
Re: Doesn't work on Attachments in Odoo 13.0?
Hi Eleuterio, thanks for sharing your concern with us. Since we have mentioned on the description under *How It Works* tab, users need to ensure that the attachment field or binary field must have set *attachment=True*. And if the attachment is of type audio then you've to download it to view. It works with other file types like pdf, txt, jpg, mp4. You can test that the app is working fine by uploading a file in Attachments (Just search for Attachments in developer mode). Then after uploading and saving, a new button will appear on the right side of the uploaded file in the form view 📄 like this. Clicking on it will preview the file which you have attached. Hope your concern has been addressed! In case of any further concern, please feel free to reach out at sales@ksolves.com Thanks Team Ksolves!
Doesn't work on Attachments in Odoo 13.0?
I installed this on Odoo 13.0 but did not see any changes when I view attachments in the chatter. the attached files still download when clicked. Did I miss something? or does this need custom development for it work?
I have an error
I installed the module correctly and follow the guide but when y click on the preview button nothing happens and a warning show on javascript console. jQuery.Deferred exception: Cannot read property 'match' of undefined TypeError: Cannot read property 'match' of undefined
Not working
After installation in odoo 13 (latest copy) by clicking the preview button it return javascript:void(0) by clicking edit button in the form it throw a error message https://prnt.sc/qxpqbi . Could you please fix this issues Best regards.Saikiruba MJ
Re: Not working
Hi Saikiruba, thanks for your concern and apologies for the inconvenience caused to you. Sure, we will check the same and shall update you over here. Please feel free to share your further concerns or queries with us on sales@ksolves.com We would love to assist you. Thanks!
Over all working good but not supporting txt files.
I have tested this module by uploading image document (png) portable document (pdf) both are working fine but its not previewing text file but downloading it
Problem with downloding pdf invoice in POS Module
First of all, thank you so much for your effort. Second thing, when I tested this module with POS module, and when I activate the possibility to download the invoice, the POS screen hangs in the level of printing the receipt and still blocked. Could you please fix this useful app. Best regards