Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0006099Openbravo ERP00. Application dictionarypublic2008-11-20 11:442009-01-25 18:17
networkb 
gorkaion 
immediateminoralways
closedfixed 
30
2.40 
2.40MP2 
Core
No
0006099: A report defined on the report and process as report does not work properly
A report defined on the report and process as report (checkbox) and on class tab selected the action=report
does not work
1) Define a new report: In the header select the report checkbox
2) Define the class with report action in the combo.
3) Select this report to be printed using the printing button in the toolbar
It is defined in the window where the tab is defined.
4) Compile the application
5) The report does not work.
No tags attached.
related to defect 0005488 closed gorkaion Can not print documents in trunk 
Issue History
2008-11-20 11:44networkbNew Issue
2008-11-20 11:44networkbAssigned To => jpabloae
2008-11-20 11:46jpabloaeProjectOpenbravo Deployment Options => Openbravo ERP
2008-11-20 11:46rafarodaCategorySMB Network One => 00. Application dictionary
2008-11-20 12:00networkbAssigned Tojpabloae => rafaroda
2008-11-20 12:00networkbPrioritynormal => immediate
2008-11-20 12:00networkbProposed Solution updated
2008-11-20 12:10networkbProposed Solution updated
2008-11-20 12:59networkbSummaryA report defined on the report and process can not be selected on the process combo on the tab definition => A report defined on the report and process as report does not work properly
2008-11-20 12:59networkbDescription Updated
2008-11-20 12:59networkbProposed Solution updated
2008-11-20 15:28rafarodaNote Added: 0010450
2008-11-20 15:28rafarodaAssigned Torafaroda => gorkaion
2008-11-20 15:28rafarodaStatusnew => scheduled
2008-11-20 15:28rafarodaTypedefect => backport
2008-11-20 15:28rafarodafix_in_branch => 2.40
2008-11-20 15:29rafarodaRelationship addedrelated to 0005488
2008-11-20 18:59svnbotCheckin
2008-11-20 18:59svnbotNote Added: 0010464
2008-11-20 18:59svnbotStatusscheduled => resolved
2008-11-20 18:59svnbotResolutionopen => fixed
2008-11-20 18:59svnbotsvn_revision => 10349
2008-11-25 09:16svnbotCheckin
2008-11-25 09:16svnbotNote Added: 0010599
2008-11-25 09:16svnbotsvn_revision10349 => 10505
2009-01-25 18:17psarobeRegression testing => No
2009-01-25 18:17psarobeStatusresolved => closed
2009-01-25 18:17psarobeNote Added: 0012602

Notes
(0010450)
rafaroda   
2008-11-20 15:28   
How to make it fail:
1) Go to Sales Invoice window and print one invoice: OK
2) Execute in your database the SQL: update ad_model_object set action = 'R' where ad_model_object_id = 800793; (will change ad_model_object of Invoice printing from action process to action report)
3) Compile Sales Invoice window: ant compile.development -Dtab="Sales Invoice" -Dtr="no"
4) Go to Openbravo ERP again, to to Sales Invoice window and print one invoice: FAILS with error:

HTTP Status 404 - /openbravo-branch-240/businessUtility/..RptC_Invoice.pdf

type Status report

message /openbravo-branch-240/businessUtility/..RptC_Invoice.pdf

description The requested resource (/openbravo-branch-240/businessUtility/..RptC_Invoice.pdf) is not available.
(0010464)
svnbot   
2008-11-20 18:59   
Repository: openbravo
Revision: 10349
Author: gorkaion
Date: 2008-11-20 18:59:32 +0100 (Thu, 20 Nov 2008)

Fixed bug 6099. The reports associated to a window can have now an ad_model_object of type R or P. If the associated process doesn't have a model_object_mapping it uses the value of the process with a preceding '/' and with '.pdf' termination.

---
U branches/r2.40/src-wad/src/org/openbravo/wad/Tabs_data.xsql
U branches/r2.40/src-wad/src/org/openbravo/wad/Wad.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=10349&sc=1 [^]
(0010599)
svnbot   
2008-11-25 09:16   
Repository: openbravo
Revision: 10505
Author: villind
Date: 2008-11-25 09:16:18 +0100 (Tue, 25 Nov 2008)

Merged r10349. Fixed bug 6099. The reports associated to a window can have now an ad_model_object of type R or P. If the associated process doesn't have a model_object_mapping it uses the value of the process with a preceding '/' and with '.pdf' termination.

---
_U branches/bonware/r2.40/
_U branches/bonware/r2.40/config/setup-tool/
_U branches/bonware/r2.40/eclipse.install.source.launch
_U branches/bonware/r2.40/export.database.launch
_U branches/bonware/r2.40/src-core/src/org/openbravo/database/OpenbravoDriverManagerConnectionFactory.java
U branches/bonware/r2.40/src-wad/src/org/openbravo/wad/Tabs_data.xsql
U branches/bonware/r2.40/src-wad/src/org/openbravo/wad/Wad.java
_U branches/bonware/r2.40/update.database.launch
---

https://dev.openbravo.com/websvn/openbravo/?rev=10505&sc=1 [^]
(0012602)
psarobe   
2009-01-25 18:17   
After following these steps, it does not fail:

How to make it fail:
1) Go to Sales Invoice window and print one invoice: OK
2) Execute in your database the SQL: update ad_model_object set action = 'R' where ad_model_object_id = 800793; (will change ad_model_object of Invoice printing from action process to action report)
3) Compile Sales Invoice window: ant compile.development -Dtab="Sales Invoice" -Dtr="no"
4) Go to Openbravo ERP again, to to Sales Invoice window and print one invoice: FAILS with error:

HTTP Status 404 - /openbravo-branch-240/businessUtility/..RptC_Invoice.pdf