Open PDF Reports and PDF Attachments in Browser

by ,
Odoo 8
v 15.0 Third Party 7977
Download for v 15.0 Deploy on Odoo.sh Live Preview
Lines of code 271
Technical Name prt_report_attachment_preview
LicenseLGPL-3
Websitehttps://cetmix.com
Also available in version v 13.0 v 14.0 v 11.0 v 12.0 v 10.0
You bought this module and need support? Click here!
Lines of code 271
Technical Name prt_report_attachment_preview
LicenseLGPL-3
Websitehttps://cetmix.com
Also available in version v 13.0 v 14.0 v 11.0 v 12.0 v 10.0

Open PDF Reports in browser

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!

Other useful apps

Support

  • Tested on Odoo Community v14.0
  • Russian language translation
  • English, German and Russian language support
  • Click to contact us for support or any custom app you need

Need support, customization or interested in collaboration?

Try our Apps

In Odoo App Store

Contact Us

cetmix.com

Run demo

demo.cetmix.com

Search for "cetmix" in social networks

Before

After

Click to try it!

Click to contact us for support

Icon and frame vector created by Freepik

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
by
Ivan Sokolov
on 12/28/21, 8:42 AM Author

Hi Okeleke Mike,

Issue is fixed, please download the latest version and try again.


Connection lost
by
newpharm33
on 4/27/22, 10:01 AM

odoo 15
Latest version
print labels
Connection lost. Trying to reconnect...


by
Okeleke Mike
on 4/10/22, 4:01 PM

https://watch.screencastify.com/v/cKCPtGxdnV7a3jBiaCDr


by
Okeleke Mike
on 4/5/22, 2:45 AM

error on all reports printing 

says:

connection lost trying to reconnect

Re:
by
Ivan Sokolov
on 4/5/22, 3:30 AM Author

Thank you for the feedback! Please send detailed so we could checkt it:
You report must contain the following information:
- Odoo version
- Operating system
- List of third-party modules installed
- Screen video done with a screen video recorder (NOT a mobile phone)

Best regards,
Ivan


by
Okeleke Mike
on 3/18/22, 12:08 PM

It's not also allowing "Print Labels" when installed 


Re:
by
Ivan Sokolov
on 3/18/22, 1:34 PM Author

Thank you for the feedback! Please send detailed report including the screen video.

Best regards,
Ivan


by
Okeleke Mike
on 3/5/22, 8:44 AM

It's not allowing 'Sales Details' report to work in POS reports 

Re:
by
Ivan Sokolov
on 3/5/22, 11:07 AM Author

Thank you for the feedback! Please send detailed report including the screen video.

Best regards,
Ivan


by
Adél Kovács
on 2/3/22, 5:19 AM

Is it compatible with multicompany? I think not. We tried to use in an other company, but we get this message:

403: Forbidden

The page you were looking for could not be authorized.

Error message:

Due to security restrictions, you are not allowed to access 'Sales Order' (sale.order) records.
Records: S00561 (id=561)
User: Kovács Adél (id=2)
This restriction is due to the following rules:
- Sales Order multi-company
Note: this might be a multi-company issue.
Contact your administrator to request access if necessary.
Re:
by
Ivan Sokolov
on 2/3/22, 11:36 AM Author

Hello Adél,

It should have no issues with multi-company while it does not affect any user right or access rules. However you can send detailed information by email and I will check.

Best regards,
Ivan


by
Muhsin kv
on 1/29/22, 5:12 AM

after installing this module, when we try to post an invoice, it try to post twice and getting a warning message invoice already posted. why is that happening.please fix that problem

thank you

Re:
by
Ivan Sokolov
on 1/29/22, 6:41 AM Author

Hello Muhsin,

Thank you for your feedback! We will check and fix it asap.

Best regards,
Ivan


by
a7med.nor@gmail.com
on 1/3/22, 6:06 PM

sale invoice and quotation


Re:
by
Ivan Sokolov
on 1/4/22, 2:28 AM Author

Just checked both reports on Odoo 15.0-20211220 and they are working fine. Please check your instance and ensure that you are using the latest version of the module,


Re: still there is problem in badge print under employee module
by
desimomo
on 1/2/22, 1:38 AM
Re: still there is problem in badge print under employee module
by 
Ivan Sokolov

 on 1/1/22, 7:06 PM Hi, which report exactly are you trying to print?
Reply -

Under Employee Module > Go to Employees > Go To HR Settings > Right Side > Pin Code / Badge ID > Click on Print Badge 

When Print Badge you click it show same error as previous.

Kindly Check.

Re: Re: still there is problem in badge print under employee moduleRe: still there is problem in badge print under employee module
by
Ivan Sokolov
on 1/11/22, 2:40 AM Author

Hi, please update the module to the latest version and check again.

WBR, Ivan


still there is problem in badge print under employee module
by
desimomo
on 12/31/21, 12:16 PM

on 28/12/2021 you wrote that - Issue is fixed, please download the latest version and try again.

product label print is working fine , but  problem still present when you print badge under employee module 

this show error as below :-

UncaughtClientError > TypeError

Uncaught Javascript Error > invalid type format

TypeError: invalid type format

    at parse (https://www.desimomo.in/web/assets/2483-61b4458/web.assets_backend.min.js:541:65)

    at XMLHttpRequest.xhr.onload (https://www.desimomo.in/web/assets/2483-61b4458/web.assets_backend.min.js:569:222)


Please fix this problem and update ,

many thanks.

Re: still there is problem in badge print under employee module
by
Ivan Sokolov
on 1/1/22, 8:36 AM Author

Hi, which report exactly are you trying to print?


by
a7med.nor@gmail.com
on 12/31/21, 11:39 AM

odoo 15 

error 

connection lost trying to reconnect



Re:
by
Ivan Sokolov
on 1/2/22, 4:09 AM Author

Hi, which report exactly are you trying to print?


App not working in Odoo 15
by
Okeleke Mike
on 12/25/21, 8:56 AM

Report Type: print labels (product)


RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

  File "C:\Odoo\App\15\server\odoo\addons\base\models\qweb.py", line 219, in render_template

    yield from compiled_fn(self, values, log)

  File "<template_433>", line 127, in template_433

  File "<template_433>", line 79, in t_call_content

TypeError: 'int' object is not subscriptable


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "C:\Odoo\App\15\server\odoo\addons\web\controllers\main.py", line 2008, in report_download

    response = self.report_routes(reportname, converter=converter, context=context, **data)

  File "C:\Odoo\App\15\server\odoo\http.py", line 535, in response_wrap

    response = f(*args, **kw)

  File "C:\Odoo\App\15\server\odoo\addons\web\controllers\main.py", line 1934, in report_routes

    pdf = report.with_context(context)._render_qweb_pdf(docids, data=data)[0]

  File "C:\Odoo\App\15\server\odoo\addons\account\models\ir_actions_report.py", line 47, in _render_qweb_pdf

    return super()._render_qweb_pdf(res_ids=res_ids, data=data)

  File "C:\Odoo\App\15\server\odoo\addons\base\models\ir_actions_report.py", line 819, in _render_qweb_pdf

    html = self_sudo.with_context(context)._render_qweb_html(res_ids, data=data)[0]

  File "C:\Odoo\App\15\server\odoo\addons\base\models\ir_actions_report.py", line 863, in _render_qweb_html

    return self._render_template(self.report_name, data), 'html'

  File "C:\Odoo\App\15\server\odoo\addons\base\models\ir_actions_report.py", line 600, in _render_template

    return view_obj._render_template(template, values).encode()

  File "C:\Odoo\App\15\server\odoo\addons\base\models\ir_ui_view.py", line 1976, in _render_template

    return self.browse(self.get_view_id(template))._render(values, engine)

  File "C:\Odoo\App\15\server\odoo\addons\web_editor\models\ir_ui_view.py", line 29, in _render

    return super(IrUiView, self)._render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)

  File "C:\Odoo\App\15\server\odoo\addons\base\models\ir_ui_view.py", line 1984, in _render

    return self.env[engine]._render(self.id, qcontext)

  File "C:\Odoo\App\15\server\odoo\tools\profiler.py", line 289, in _tracked_method_render

    return method_render(self, template, values, **options)

  File "C:\Odoo\App\15\server\odoo\addons\base\models\ir_qweb.py", line 74, in _render

    result = super()._render(template, values=values, **compile_options)

  File "C:\Odoo\App\15\server\odoo\addons\base\models\qweb.py", line 134, in _render

    result = ''.join(rendering)

  File "C:\Odoo\App\15\server\odoo\addons\base\models\qweb.py", line 221, in render_template

    raise e

  File "C:\Odoo\App\15\server\odoo\addons\base\models\qweb.py", line 219, in render_template

    yield from compiled_fn(self, values, log)

  File "<template_435>", line 27, in template_435

  File "<template_435>", line 24, in t_call_content

  File "C:\Odoo\App\15\server\odoo\addons\base\models\qweb.py", line 224, in render_template

    error=e, template=template, path=log.get('last_path_node'), code=code)

odoo.addons.base.models.qweb.QWebException: 'int' object is not subscriptable

Traceback (most recent call last):

  File "C:\Odoo\App\15\server\odoo\addons\base\models\qweb.py", line 219, in render_template

    yield from compiled_fn(self, values, log)

  File "<template_433>", line 127, in template_433

  File "<template_433>", line 79, in t_call_content

TypeError: 'int' object is not subscriptable


Error when render the template

TypeError: 'int' object is not subscriptable

Template: product.report_productlabel_dymo

Path: /t/t/t[4]/t[2]/t[1]

Node: <t t-set="barcode" t-value="barcode_and_qty[0]"/>

                        


Re: App not working in Odoo 15
by
Ivan Sokolov
on 12/26/21, 2:40 AM Author

Hi, thank you for reporting! We will check and issue a fix.


App not working in Odoo 15
by
Okeleke Mike
on 12/17/21, 1:22 PM


Re: App not working in Odoo 15
by
Ivan Sokolov
on 12/17/21, 2:22 PM Author

Hi, could you please clarify what does "not working" exactly mean?
Also please provide the following information:

- Which document are you trying to print?
- Error message and error log if any
- Which third party modules are installed?

Best regards,
Ivan