web pdf viewer cause viewer crashe

Bug #1314280 reported by Didier Corbasson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

Seams to appear every time you open a report from another menu context ( ex delivery slip report in the sale menu )

message in the console
"PDF 1cb42fe84eb448c61f7ebe2913f2a1 [1.4 ReportLab http://www.reportlab.com / -] (PDF.js: 0.8.990)" viewer.js:3178
"offsetParent is not set -- cannot scroll" viewer.js:158
NS_ERROR_FAILURE: pdf.js:5789

You can easily reproduce the error this way:

->Place an order (sale order) and continue the process until delivery
->click the button to see the "delivery slip"
  the breadcrumb shows "Saleorder -> SO ... -> OUT ...
  we are now in the correct form of delivery (but we are still in the sales menu)
->click on the Print button and select the printing model

-> Crash

->press F5

  We are now in the Warehouse menu, subcategory delivery.
  the breadcrumb shows "Delivery slip-> OUT ...
->click on the Print button and select the model printing

-> Good

openerp 7
firefox

Same problem with chrome

Related branches

Revision history for this message
Didier Corbasson (dcorba) wrote :

Change some lines in web_pdf_viewer.js
$('.oe_view_manager.oe_view_manager_current').children().hide();
by
$('.oe_view_manager.oe_view_manager_current').last().children().hide();

and

.prependTo('.oe_view_manager.oe_view_manager_current')
by
.prependTo($('.oe_view_manager.oe_view_manager_current').last())

and

$('.oe_view_manager.oe_view_manager_current').children().show();
by
$('.oe_view_manager.oe_view_manager_current').last().children().show();

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.