Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024985Openbravo ERPJ. Demo datapublic2013-10-21 17:272013-10-22 23:42
plujan 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
pi 
3.0MP29 
shankarb
Core
QA functional test
2013-10-07
https://code.openbravo.com/erp/devel/pi/rev/94d0fb151919 [^]
No
0024985: Audit data shows no values for stored data in PI
Current PI context shows no data for most of the default records. This cannot be reproduced in current Main context. See steps.
A. To show stored data is not properly set
  1. Go to a PI context
  2. Login as Openbravo user
  3. Go to Purchase Order window
  4. Grid shows no data, click the funnel to clear the filters
  5. Data will appear, select the first record (document number 1000000)
  6. Enter Form view and check audit data is not shown (see attached screenshot)
  7. Go to a Main context
  8. Repeat steps 2 to 5
  9. Enter Form view and check audit data is properly shown (see attached screenshot)

B. To show that the problem is only with stored data
  1. Go to a PI context
  2. Login as Openbravo user
  3. Go to Purchase Order window
  4. Click new and create a new Order.
  5. Save the record and return to grid.
  6. Select in grid the created record
  7. Enter Form view and check audit data is properly shown

No tags attached.
jpg Audit-main.jpg (215,525) 2013-10-21 17:27
https://issues.openbravo.com/file_download.php?file_id=6455&type=bug
jpg
Issue History
2013-10-21 17:27plujanNew Issue
2013-10-21 17:27plujanAssigned To => dmiguelez
2013-10-21 17:27plujanFile Added: Audit-main.jpg
2013-10-21 17:27plujanModules => Core
2013-10-21 17:27plujanTriggers an Emergency Pack => No
2013-10-21 17:30plujanRegression level => Pre packaging ( pi )
2013-10-21 19:45AugustoMauchAssigned Todmiguelez => AugustoMauch
2013-10-21 20:01dmitry_mezentsevNote Added: 0061827
2013-10-22 10:54AugustoMauchRegression levelPre packaging ( pi ) => QA functional test
2013-10-22 10:54AugustoMauchRegression date => 2013-10-07
2013-10-22 10:54AugustoMauchRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/94d0fb151919 [^]
2013-10-22 10:54AugustoMauchIssue Monitored: shankarb
2013-10-22 10:54AugustoMauchReview Assigned To => shankarb
2013-10-22 10:56hgbotCheckin
2013-10-22 10:56hgbotNote Added: 0061842
2013-10-22 10:56hgbotStatusnew => resolved
2013-10-22 10:56hgbotResolutionopen => fixed
2013-10-22 10:56hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/bb980d7198e0d2e879446bb37e60b192f9ac6694 [^]
2013-10-22 12:27shankarbNote Added: 0061844
2013-10-22 12:27shankarbStatusresolved => closed
2013-10-22 12:27shankarbFixed in Version => 3.0MP29
2013-10-22 23:42hudsonbotCheckin
2013-10-22 23:42hudsonbotNote Added: 0061860

Notes
(0061827)
dmitry_mezentsev   
2013-10-21 20:01   
I have a comment here.

A. To show stored data is not properly set
  1. Go to a PI context
  2. Login as Openbravo user
  3. Go to Purchase Order window
  4. Grid shows no data, click the funnel to clear the filters
  5. Data will appear, select the first record (document number 1000000)
  6. Enter Form view and check audit data is not shown (see attached screenshot)

If after it I press Refresh button - data appears.
(0061842)
hgbot   
2013-10-22 10:56   
Repository: erp/devel/pi
Changeset: bb980d7198e0d2e879446bb37e60b192f9ac6694
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Oct 22 10:53:35 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/bb980d7198e0d2e879446bb37e60b192f9ac6694 [^]

Fixes issue 24985: Audit data values are not shown in the form view

One of the changes introduced by the grid datasource project [1] was that the grid does not load all the properties for each row, only the ones that are visible in the grid (plus a few other required ones). When a record is opened in form view there is call to the FIC in EDIT mode to retrieve all the record values. The problem is that the audit values are not being returned in that FIC call, because there are no fields for those values.

To fix this, the audit values have been added to the list of mandatory properties, so they will be loaded to the grid even if they are not being shown.

[1] https://code.openbravo.com/erp/devel/pi/rev/94d0fb151919 [^]

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewGridComponent.java
---
(0061844)
shankarb   
2013-10-22 12:27   
Code reviewed and tested in pi changeset bb980d7198e0.
(0061860)
hudsonbot   
2013-10-22 23:42   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/a362c560793b [^]

Maturity status: Test