Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012973Openbravo ERP07. Sales managementpublic2010-04-14 13:402010-05-25 11:29
adrianromero 
harikrishnan 
highminoralways
closedfixed 
5
2.40MP12 
2.40MP13 
Core
No
0012973: Problem showing audit in grid view
Logged with a role different from OpenbravoAdmin (for example, Sales), when trying to "Show Audit" in grid view of Sales Order window nothing happens.
On the other hand if you go to edition mode of any sales order and press "Show Audit" button, information is properly showed.

[Note: if you are logged with OpenbravoAdmin role you are able to show audit in grid view]
1. Log as Sales role
2. Go to Sales Management || Transactions || Sales Order || Header , and Grid mode
3. Press "Show Audit" button and realize that nothing happens
4. Go to Edit mode of the first record, and after pressing "Show Audit" button realize that audit information is showed.
No tags attached.
blocks defect 00129702.40MP13 closed adrianromero Problem showing audit in grid view 
Issue History
2010-04-14 13:40adrianromeroNew Issue
2010-04-14 13:40adrianromeroAssigned To => adrianromero
2010-04-14 13:40adrianromeroIssue generated from0012970
2010-04-14 13:40adrianromeroRelationship addedblocks 0012970
2010-04-14 13:41adrianromeroStatusnew => scheduled
2010-04-14 13:41adrianromeroTarget Version2.50MP13 => 2.40MP13
2010-05-18 07:01harikrishnanAssigned Toadrianromero => harikrishnan
2010-05-18 07:16hgbotCheckin
2010-05-18 07:16hgbotNote Added: 0027397
2010-05-18 07:16hgbotStatusscheduled => resolved
2010-05-18 07:16hgbotResolutionopen => fixed
2010-05-18 07:16hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/a6d63548df785369971137a2738525c3b8f0392d [^]
2010-05-18 07:16harikrishnanNote Added: 0027398
2010-05-25 11:29arunkumarNote Added: 0027715
2010-05-25 11:29arunkumarStatusresolved => closed

Notes
(0027397)
hgbot   
2010-05-18 07:16   
Repository: erp/stable/2.40
Changeset: a6d63548df785369971137a2738525c3b8f0392d
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Tue May 18 10:45:06 2010 +0530
URL: http://code.openbravo.com/erp/stable/2.40/rev/a6d63548df785369971137a2738525c3b8f0392d [^]

Fixes issue 12973 The problem was that the change audit servlet was defined as a process, therefore before executing it, it is checked the current role has permission to it. So if the new role doesn't have explicit access to the process, it doesn't work.

---
M src-db/database/sourcedata/AD_MODEL_OBJECT.xml
M src-db/database/sourcedata/AD_PROCESS.xml
---
(0027398)
harikrishnan   
2010-05-18 07:16   
Steps To Test:

Follow the Steps to reproduce.

Root Cause:

The problem was that the change audit servlet was defined as a process, therefore before executing it, it is checked the current role has permission to it. So if the new role doesn't have explicit access to the process, it doesn't work.


Impact:

Their is no other impact due to this fix.
(0027715)
arunkumar   
2010-05-25 11:29   
Tested working fine