Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0019579 | Openbravo ERP | A. Platform | public | 2012-01-27 12:26 | 2012-03-02 15:34 |
|
Reporter | malsasua | |
Assigned To | alostale | |
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 20 | OS Version | Community Appliance |
Product Version | | |
Target Version | 3.0MP10 | Fixed in Version | 3.0MP9 | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | OBPS |
Web browser | Google Chrome |
Modules | Core |
Support ticket | 14039 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0019579: to print a pdf , the popup is not closed automatically |
Description | when you open a report from the button in toolbar, a popup is opened, but it is not closed automatically |
Steps To Reproduce | . go to warehouse management -> transactions -> outgoing shipment ->
click in print button |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | 19579.export (8,475) 2012-02-03 10:00 https://issues.openbravo.com/file_download.php?file_id=4953&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2012-01-27 12:26 | malsasua | New Issue | |
2012-01-27 12:26 | malsasua | Assigned To | => alostale |
2012-01-27 12:26 | malsasua | Web browser | => Google Chrome |
2012-01-27 12:26 | malsasua | Modules | => Core |
2012-01-27 12:26 | malsasua | OBNetwork customer | => Yes |
2012-01-27 12:26 | malsasua | Support ticket | => 14039 |
2012-01-27 12:26 | malsasua | Resolution time | => 1334181600 |
2012-01-27 12:35 | malsasua | Issue Monitored: networkb | |
2012-01-27 12:35 | malsasua | Web browser | Google Chrome => Google Chrome |
2012-01-27 12:35 | malsasua | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=3103#r3103 |
2012-02-02 18:22 | alostale | Note Added: 0044831 | |
2012-02-02 18:22 | alostale | Note Edited: 0044831 | bug_revision_view_page.php?bugnote_id=0044831#r3128 |
2012-02-03 10:00 | alostale | File Added: 19579.export | |
2012-02-03 10:03 | alostale | Note Added: 0044842 | |
2012-02-03 10:18 | alostale | Note Added: 0044843 | |
2012-02-03 10:42 | alostale | Note Added: 0044845 | |
2012-02-03 10:45 | hgbot | Checkin | |
2012-02-03 10:45 | hgbot | Note Added: 0044846 | |
2012-02-03 10:45 | hgbot | Status | new => resolved |
2012-02-03 10:45 | hgbot | Resolution | open => fixed |
2012-02-03 10:45 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/099fe5a016340e9a9944428284b78285f70e54c3 [^] |
2012-02-21 16:36 | malsasua | Note Added: 0045312 | |
2012-02-28 12:07 | AugustoMauch | Note Added: 0045523 | |
2012-02-28 12:07 | AugustoMauch | Status | resolved => closed |
2012-02-28 12:07 | AugustoMauch | Fixed in Version | => 3.0MP9 |
2012-03-02 15:34 | hudsonbot | Checkin | |
2012-03-02 15:34 | hudsonbot | Note Added: 0045748 | |
Notes |
|
|
The problem is the servlet returning the pdf was opened within the popup. The fix opens it through the hidden form in this case.
Regression risks/Test plan:
1. There are two different printing mechanism, both should work as described:
-associating a process to a tab (such as the one described in the example) which should directly download the document.
-using poc configuration, in this case the popup should still be opened, when clicking the print button, popup should be closed and file downloaded
2. Different browsers might behave differently.
3. Test every report invokable from toolbar:
*Business Partner - Business Partner
*Goods Receipt - Header
*Goods Shipment - Header
*Incoming Shipment - Shipment in
*Outgoing Shipment - Shipment out
*Payment In - Header
*Payment Out - Header
*Process Plan - Process Plan
*Purchase Invoice - Header
*Purchase Invoice - Payment
*Purchase Order - Header
*Quality Control Point - Check Point Set
*Quality Control Report - Date and Shift
*Remittance - Header
*Remittance - Remittance
*Requisition - Requisition
*Return from Customer - Header
*Return to Vendor - Header
*Return to Vendor Shipment - Header
*Sales Invoice - Header
*Sales Invoice - Payment
*Sales Order - Header
*Service Project - Proposal
*Settlement - Created Payments
*Settlement - Settlement
*Tax Payment - Header
*Tax Payment - Tax Register Header
|
|
|
|
Attached fix with the proposed solution -> In case of non POC button, use hidden form to get the pdf.
This solution is NOT valid. It assumes all non POC print buttons to response with a file to download. But this assumption is not correct. For example in Business Partner it the response is HTML to be shown in a popup. |
|
|
|
Another solution is not to use HttpBaseServlet.renderFO(String, HttpServletResponse) method to render the pdf, but HttpSecureAppServlet.renderFO(String, request, response) instead. This method closes the opened popup.
To review:
* Outgoing Shipment-Shipment out -> org.openbravo.erpReports.RptM_Inout
* Incoming Shipment-Shipment in -> org.openbravo.erpReports.RptM_Inout
* Quality Control Point-Check Point Set -> org.openbravo.erpReports.RptMA_CCP_Group
* Quality Control Report-Date and Shift -> org.openbravo.erpReports.RptMA_CCP_Measures
* Business Partner-Business Partner -> org.openbravo.erpReports.RptC_Bpartner
* Service Project-Proposal -> org.openbravo.erpReports.RptC_ProposalJr
* Process Plan-Process Plan -> org.openbravo.erpReports.RptMA_ProcessPlan
* Tax Payment-Tax Register Header -> org.openbravo.erpReports.ReportVatRegisterJR
* Tax Payment-Header -> org.openbravo.erpReports.ReportTaxPaymentJR
* Requisition-Requisition -> org.openbravo.erpReports.RptM_Requisition
* Remittance-Remittance -> org.openbravo.module.remittance.erpReports.RptRemittance |
|
|
|
After reviewing the tabs not working as expected were:
Quality Control Point;Check Point Set;org.openbravo.erpReports.RptMA_CCP_Group
Quality Control Report;Date and Shift;org.openbravo.erpReports.RptMA_CCP_Measures
Incoming Shipment;Shipment in;org.openbravo.erpReports.RptM_Inout
Outgoing Shipment;Shipment out;org.openbravo.erpReports.RptM_Inout
This approach is less regression risky than the previous one. It only affects the 4 tabs listed above.
Test plan:
-Check it works in the 4 tabs with different browsers (tested so far Chrome and FF) |
|
|
(0044846)
|
hgbot
|
2012-02-03 10:45
|
|
Repository: erp/devel/pi
Changeset: 099fe5a016340e9a9944428284b78285f70e54c3
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Feb 03 10:43:34 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/099fe5a016340e9a9944428284b78285f70e54c3 [^]
fixed bug 19579: to print a pdf, the popup is not closed automatically
---
M src/org/openbravo/erpReports/RptMA_CCP_Group.java
M src/org/openbravo/erpReports/RptMA_CCP_Measures.java
M src/org/openbravo/erpReports/RptM_Inout.java
---
|
|
|
|
checked in version 3.0.15265
functionality OK:
test plan:
1. print outgoing shipment: OK
2. print sales invoice: OK |
|
|
|
Code reviewed and verified |
|
|
|
|