Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0051146Openbravo ERPA. Platformpublic2022-12-12 15:172022-12-14 08:14
axelmercado 
Triage Platform Base 
immediatemajoralways
closedfixed 
5
2.50 
PR22Q4.1PR22Q4.1 
Core
No
0051146: Unable to download any type of report in "Excel Format" in Google Chrome browser for Chrome versions higher than 107
When trying to generate or download a new report of any type in "Excel Format" in the new versions of Chrome, the report will hang and will not work.
Can be tested on livebuilds.

1. Login and open the window named "Sales Invoice Dimensional Report"
2. Set the following in the parameters:
a) From Date: 01-11-2022
b) To Date: 30-11-2022
c) Organization: Paseo de la Cruz AGS
d) Select Dimention option as "Documento"
e) Currency: MXN
3. Click on button named "Excel Format" to run the report. The report will be loaded or the screen will go black (error).
No tags attached.
blocks defect 0051106 closed Triage Platform Base Unable to download some reports in "Excel Format" in Google Chrome browser for Chrome versions higher than 107 
Issue History
2022-12-13 16:58cbernerTypedefect => backport
2022-12-13 16:58cbernerTarget Version => PR22Q4.1
2022-12-13 17:01hgbotNote Added: 0144602
2022-12-14 08:14hgbotResolutionopen => fixed
2022-12-14 08:14hgbotStatusscheduled => closed
2022-12-14 08:14hgbotNote Added: 0144618
2022-12-14 08:14hgbotFixed in Version => PR22Q4.1
2022-12-14 08:14hgbotNote Added: 0144619

Notes
(0144602)
hgbot   
2022-12-13 17:01   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/788 [^]
(0144618)
hgbot   
2022-12-14 08:14   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/788 [^]
(0144619)
hgbot   
2022-12-14 08:14   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: df1914e8988b36e028eecf66d58437fbc85fd46e
Author: Asier Lostalé <asier.lostale@openbravo.com>
Date: 13-12-2022 17:39:47
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/df1914e8988b36e028eecf66d58437fbc85fd46e [^]

Fixes ISSUE-51146: cannot download Excel report in Chrome

Excel is exported by opening a new tab/popup with a set target to
_blank.

This worked before chrome version 107, but it does not work anymore. The
main reason is that target=_blank implies that the new window will not
be able to access window.opener object(it will be null). To avoid this
problem, we set target=null when target is _blank, this allows us to
keep the old behaviour.

---
M src/org/openbravo/erpCommon/security/Login.html
M web/js/utils.js
---