Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0051147Openbravo ERPA. Platformpublic2022-12-12 15:172022-12-14 08:13
axelmercado 
Triage Platform Base 
immediatemajoralways
closedfixed 
5
2.50 
PR22Q3.3PR22Q3.3 
Core
No
0051147: 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 => PR22Q3.3
2022-12-13 17:02hgbotNote Added: 0144603
2022-12-14 08:13hgbotResolutionopen => fixed
2022-12-14 08:13hgbotStatusscheduled => closed
2022-12-14 08:13hgbotFixed in Version => PR22Q3.3
2022-12-14 08:13hgbotNote Added: 0144616
2022-12-14 08:13hgbotNote Added: 0144617

Notes
(0144603)
hgbot   
2022-12-13 17:02   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/789 [^]
(0144616)
hgbot   
2022-12-14 08:13   
Directly closing issue as related merge request is already approved.

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

Fixes ISSUE-51147: 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
---
(0144617)
hgbot   
2022-12-14 08:13   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/789 [^]