Open PDF Reports and PDF Attachments in Browser
by Ivan Sokolov https://cetmix.com , Cetmix https://cetmix.comAvailability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 183 |
Technical Name |
prt_report_attachment_preview |
License | LGPL-3 |
Website | https://cetmix.com |
Versions | 10.0 15.0 11.0 12.0 13.0 14.0 16.0 17.0 |
[ Open PDF Reports in browser ]
Preview in browser instead of downloading
BEFORE
AFTER
Open image in new Tab to enlarge
[ MAIN FEATURES ]
- Preview PDF reports in browser instead of downloading
-
Download reports later from browser if you need
[filename will be preserved] - Note: You must enable pop-up windows for Odoo when prompted!
MESSAGING
APPS >
Information flow management is easier than you could imagine _
[
Mail Messages
Easy
]
View and manage all Odoo messages in one place
just like with a regular email client _
[
Messages
Drafts
]
Save message as draft to send it later _
[
Messages
Filter
]
Odoo messages filter and anti-spam protection _
POINT
OF SALE >
Improve retail sales efficiency _
[
PoS Stock Available Online
]
Show available product quantities
directly in Point of Sale _
[
PoS
Product Quick Info
]
Click on a smart button on the product tile to get information instantly _
INVENTORY
APPS >
Simplify and streamline your inventory management _
Version available
[
Reordering
Rules
Templates
]
Manage multiple reordering rules
at once using flexible groups _
[
Product
Tweaks
SKU
]
Generate SKU's/default codes for products based on category and attributes _
CONTACT
MANAGEMENT >
For advanced communications _
[
Contact
Groups
]
Easily manage contact groups
using special menu _
[
Advanced
Contacts
]
Multiple Email addresses and phone numbers per partner.
Export contact using QR code _
PRODUCTIVITY
APPS >
Boost up your productivity _
[
Odoo
UML
Export
]
Export Odoo module hierarchy and structure
into PlantUML _
[
Scheduled
Actions
Shortcuts
]
Launch scheduled actions
directly from Odoo system tray _
SUPPORT_
-
Tested on Odoo Community and Odoo Enterprise
-
German, Spanish language translations
-
English, German and Italian language support
CETMIX IS NOT JUST ANOTHER IT COMPANY >
We know how the business works. Our experts have management
experience in heavy machinery, energy sector, logistics,
accounting, public services and many other industries _
We are the people of business
SOLUTIONS RIGHT FOR YOUR BUSINESS
Choose an existing one or we can develop a custom one for you
>9
years
of Odoo experience
> 15 000
downloads
of our apps from Odoo App Store
>100
clients
are happy with our services
Need support, customization
or interested in collaboration ?
https://cetmix.com/
https://www.linkedin.com/company/cetmix/
https://github.com/cetmix/
https://www.facebook.com//cetmixteam
https://twitter.com/cetmix_team
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizeddon't close wizars window
Hello.
Some odoo wizards on button print return ir.actrions.report with key close_on_report_download = True
can you add this functionality to your module?
Re: don't close wizars window
Hi Oleg, thank you for the feedback!
Will check and add it if this will not break the code.
500: Internal Server Error
I have this error on every report.
Re:
Hi and thank you for your feedback!
Could you please provide some more information so we could reproduce this issue and do a fix:
- Odoo version
- User language/document language
- Module version. Should be 16.0.1.0.3
- Custom addons from the Odoo App Store installed (if any)
Please send your report to support AT cetmix DOT com
Simple and functional
a plugin that does what it says, without configuration it is installed and that's it. thanks to the develope
Error on printing labels is now fixed thanks thanks Ivan!, quick and great response!
Luis G
There is security restrict issue for multi company environment orders
There is security restrict issue for multi company environment orders. Could you fix that? Thank you.
Re: There is security restrict issue for multi company environment orders
Could you please provide detailed report to support @. cetmix DOT com ?
Again problems when product has serial number
Hello, though this issue was fixed, but appear again, I am using last add-on version for Odoo16
this is the log error text:
500: Internal Server Error
Alternativa a la plantilla
Se produjo un error al renderizar la plantilla stock.stock_report_delivery_has_serial_move_line.
Si este error es causado por un cambio suyo en las plantillas, tiene la posibilidad de restablecer la plantilla a su configuración de fábrica.
QWeb
Mensaje de error:
El error ocurrió durante la creación de la plantilla stock.stock_report_delivery_has_serial_move_line y evalua la siguiente expresión:
Traza
Re: Again problems when product has serial number
Hello, thank you for the feedback! According to the log there is an error in your template. Could you please uninstall the module and check if the error persists?
Hello, sir. Is there an update for the default Odoo URL too long?
Re:
Hello, not yet.
Amazing modules
Great modules. However, when I tried to view my 10.000 products report, it goes to about:blank#blocked
Is it because of the products that I have too much? Can it be fixed, please?
Re: Amazing modules
Hi Mike, thank you for your feedback!
This is pr because default URL generated by Odoo is too long. Let me check this.
Hello, has the problem been fixed?
Re:
Hello, yes. Please download the latest version and try again.
Send your feedback on support AT cetmix DOT com if you have any further issues.
The language I used was Chinese, and then I found that after switching to English, the report was fine. Every report is the same.
Re:
Thank you for the feedback! We will check this.
2024-01-13 04:14:56,895 11020 ERROR Test-Data werkzeug: Error on request:
Traceback (most recent call last):
File "/opt/odoo/odoo-server/odoovenv/lib/python3.10/site-packages/werkzeug/serving.py", line 319, in run_wsgi
execute(self.server.app)
File "/opt/odoo/odoo-server/odoovenv/lib/python3.10/site-packages/werkzeug/serving.py", line 311, in execute
write(data)
File "/opt/odoo/odoo-server/odoovenv/lib/python3.10/site-packages/werkzeug/serving.py", line 272, in write
self.send_header(key, value)
File "/opt/odoo/odoo-server/odoo/service/server.py", line 149, in send_header
super().send_header(keyword, value)
File "/usr/lib/python3.10/http/server.py", line 523, in send_header
("%s: %s\r\n" % (keyword, value)).encode('latin-1', 'strict'))
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 39-44: ordinal not in range(256)
Re:
Hi, thank you for the feedback!
1. Which language are you using?
2. Which report are you trying to print?
500: Internal Server Error
Odoo 16.0-20240104
and your module version is 16.0.1.0.5
New release
500: Internal Server Error
This is fixed. Please download the latest version
500: Internal Server Error
Same error as Trinh Duc Cuong. What was the fix for this?
Thank you
Re: 500: Internal Server Error
This is fixed. Please download the latest version
Hello, sir. Is the problem already solved?
Re:
Hi Mike, in progress. Planning to fix until the end of this year. Will make a public announcement when done.
Re:
Hi Mike, in progress. Planning to fix until the end of this year. Will make a public announcement when done.
It's standard, sir. I haven't done any customization
Re:
Thank you, we will check it today
Hello, I got this error when I try to print Payment Receipt
I use Odoo 16 CE and your module version is 16.0.1.0.3
500: Internal Server Error
Traceback
Re:
Hi Mike, thank you for your feedback. Is this an absolutely standard auto or do you have any customization done to it?
At present, we have a problem, using the 16 version, after printing only a line of text "HTTP/1.0 200 OK", can help to answer it? Thank you very much!
Re:
HI LongSences,
Please check comments below. We need to know which report exactly gives you that error. Please share the information at support AT cetmix DOT com
To fix a bug we need to understand where the issue happens.
We are testing the module on the vanilla Odoo CE and EE editions and cannot predict all the possible custom module behaviour.
Re:
HI LongSences,
Please check comments below. We need to know which report exactly gives you that error. Please share the information at support AT cetmix DOT com
To fix a bug we need to understand where the issue happens.
We are testing the module on the vanilla Odoo CE and EE editions and cannot predict all the possible custom module behaviour.
It happens when I try to open my custom module report
Re:
Hi Mike, we are testing our modules using official Odoo CE and EE images.
It's technically not possible to ensure that it will work with any custom module.
However we can check the issue if you share that module code with us. Please send us a note to support AT cetmix DOT com
500: Internal Server Error
Traceback
Re:
Hello Amgad, thank you for your feedback!
Could you please send a copy of the error to support AT cetmix DOT com.
Also please include the info regarding which language is configure in the user settings and if there are any custom reports installed. Eg accounting or financial reporting.
500: Internal Server Error
Traceback
Re:
Hello Mike, thank you for your feedback! We are already working on the solution for this issue.
Could you please specify which reports exactly trigger this error?
Please submit the information to support AT cetmix DOT com
Misunderstanding of the error
My previously comment may take you misunderstanding, my error is same as Trinh Duc Cuong in Rating comment, it is a bool & strip error cause by this app doing the name change accrue the other apps generate the PDF report to meet this error.
Re: Misunderstanding of the error
Noted! Thank you for clarification!
500: Internal Server Error
I have got the same error as Mike Chen, I found that the issue is this APP will change the file name that affect some other third party apps work meet this error. Such as the customer statement from browseinfo and softhealer.
could you please fix that naming issues for a new update? Really like this App.
My odoo version is
Odoo 16.0+e-20230925 (Enterprise Edition)
With the App version is
prt_report_attachment_preview-16.0.1.0.3
Re: 500: Internal Server Error
Hi Leon, thank you for the feedback!
We are working on the fix already.
im trying to print all accounting report like profit and loss, general ledger, balance sheet, etc. My accounting module is from Odoo Mates
Re:
Hi Mike, please download the latest version and try again.
Product label printing should work too
500: Internal Server Error
My version is 16.0.1.0.1 And I installed accounting module from Odoo mates. When Im generate report from accounting, it shows this error
Re:
Hello,
Thank you for the feedback! What for a module is that? And which report exactly you are printing?
In odoo 16 got this error printing labels:
500: Internal Server Error
Rastrear
Traceback (most recent call last): File "/odoo16/odoo16-server/odoo/http.py", line 1583, in _serve_db return service_model.retrying(self._serve_ir_http, self.env) File "/odoo16/odoo16-server/odoo/service/model.py", line 134, in retrying result = func() File "/odoo16/odoo16-server/odoo/http.py", line 1610, in _serve_ir_http response = self.dispatcher.dispatch(rule.endpoint, args) File "/odoo16/odoo16-server/odoo/http.py", line 1723, in dispatch return self.request.registry['ir.http']._dispatch(endpoint) File "/odoo16/odoo16-server/addons/website/models/ir_http.py", line 235, in _dispatch response = super()._dispatch(endpoint) File "/odoo16/odoo16-server/odoo/addons/base/models/ir_http.py", line 154, in _dispatch result = endpoint(**request.params) File "/odoo16/odoo16-server/odoo/http.py", line 696, in route_wrapper result = endpoint(self, *args, **params_ok) File "/odoo16/custom/misc/prt_report_attachment_preview/controllers/report.py", line 74, in report_routes data.update(json.loads(data.pop("options"))) File "/usr/lib/python3.10/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Uninstalling and restarting the server fix this and can print labels again
Luis G
Re:
Hi and than you for reporting. Which module version are you using? Eg "16.0.1.0.1"
Multi Company Issue
Multi-Company issue
Please check the error on my screenshot for the multi-company issue when printing
Re: Multi Company Issue
Hi, thank you for the feedback! Could you please update the module to the latest version and test again?
Should be version 16.0.1.0.1