Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016435Openbravo ERPA. Platformpublic2011-03-23 12:482011-03-26 00:00
mirurita 
alostale 
urgentmajoralways
closedfixed 
5
 
3.0RC6 
Core
No
0016435: Print Record button not working when launches a manual report in Openbravo 3
If the print record button has a manual report associated it fails in Openbravo 3.0 opening the popup to download the file.

In Openbravo 2.50 it's working fine.

The JavaScript in PopUp_Download.html is failing:

Uncaught TypeError: Cannot read property 'parent' of null
onLoadDo
(anonymous function)
onload

function onLoadDo(url) {
  if(typeof top.opener.parent.appFrame !== 'undefined') {
    top.opener.parent.appFrame.document.location.href = url;
  }
  else {
    top.opener.parent.document.location.href = url;
  }
  closePage();
}
1) Install remittance module
https://code.openbravo.com/erp/mods/org.openbravo.module.remittance/ [^]
2) Go to Remittance window
 2.1) Create a new remittance
 2.2) Click on the Print Record button in the toolbar
No tags attached.
png Remittance_Report1.png (109,990) 2011-03-23 12:49
https://issues.openbravo.com/file_download.php?file_id=3735&type=bug
png

png Remittance_Report2.png (135,312) 2011-03-23 12:49
https://issues.openbravo.com/file_download.php?file_id=3736&type=bug
png
Issue History
2011-03-23 12:48miruritaNew Issue
2011-03-23 12:48miruritaAssigned To => alostale
2011-03-23 12:48miruritaModules => Core
2011-03-23 12:49miruritaFile Added: Remittance_Report1.png
2011-03-23 12:49miruritaFile Added: Remittance_Report2.png
2011-03-23 17:06hgbotCheckin
2011-03-23 17:06hgbotNote Added: 0035182
2011-03-23 17:06hgbotStatusnew => resolved
2011-03-23 17:06hgbotResolutionopen => fixed
2011-03-23 17:06hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/bcc6168f9e82e386a6613f2bdc4e8a3a522f01c4 [^]
2011-03-25 11:07miruritaNote Added: 0035231
2011-03-25 11:07miruritaStatusresolved => closed
2011-03-26 00:00anonymoussf_bug_id0 => 3245276

Notes
(0035182)
hgbot   
2011-03-23 17:06   
Repository: erp/devel/pi
Changeset: bcc6168f9e82e386a6613f2bdc4e8a3a522f01c4
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Mar 23 17:05:48 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/bcc6168f9e82e386a6613f2bdc4e8a3a522f01c4 [^]

fixed bug 16435: Print Record button not working when launches a manual report

---
M src/org/openbravo/base/secureApp/PopUp_Download.html
---
(0035231)
mirurita   
2011-03-25 11:07   
Verified.