web pdf viewer cause viewer crashe
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 1cb42fe84eb448c
"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
- Mantavya Gajjar (Open ERP) (community): Needs Information
- OpenERP R&D Web Team: Pending requested
-
Diff: 370 lines (+326/-0)6 files modifiedaddons/web_pdf_viewer/__init__.py (+1/-0)
addons/web_pdf_viewer/__openerp__.py (+34/-0)
addons/web_pdf_viewer/main.py (+39/-0)
addons/web_pdf_viewer/static/description/index.html (+54/-0)
addons/web_pdf_viewer/static/src/css/close_button.css (+41/-0)
addons/web_pdf_viewer/static/src/js/web_pdf_viewer.js (+157/-0)
Change some lines in web_pdf_viewer.js view_manager. oe_view_ manager_ current' ).children( ).hide( ); view_manager. oe_view_ manager_ current' ).last( ).children( ).hide( );
$('.oe_
by
$('.oe_
and
.prependTo( '.oe_view_ manager. oe_view_ manager_ current' ) $('.oe_ view_manager. oe_view_ manager_ current' ).last( ))
by
.prependTo(
and
$('.oe_ view_manager. oe_view_ manager_ current' ).children( ).show( ); view_manager. oe_view_ manager_ current' ).last( ).children( ).show( );
by
$('.oe_