Openbravo Issue Tracking System - POS2
View Issue Details
0055159POS2Corepublic2024-04-10 15:332024-04-21 22:59
alostale 
Triage Platform Base 
normalmajorhave not tried
closedfixed 
5
 
24Q3 
No
0055159: organization is not taken into account when checking approvals
Supervisor's write access to the current organization is not checked when performing an approval.
1. Log into BO with The White Valley Admin role
1.1 In Role window select VallBlancaUser
1.2 In user action access, select SetLinePrice and set as Approval required
2. In BO change role to F&B Group Admin
2.1 Create a new user in F&B International Group client
2.2 Grant "F&B US, Inc. - Sales" role to this new user
2.3 Edit "F&B US, Inc. - Sales" role adding in User Action Access tab "Can Use and Approve" for SetLine action
3. Log into POS in VBS-2 terminal with vallblanca user
3.1 Create a ticket with a line
3.2 Select Price Modification option for that line and set a new price
3.3 In the approval popup add the credentials for the user created in step 2.1
   ERROR -> the user for F&B can approve in Vallblanca store

When checking if a user can approve, it should be taken into consideration whether that user have write access to current organization.
No tags attached.
Issue History
2024-04-10 15:33alostaleNew Issue
2024-04-10 15:33alostaleAssigned To => Triage Platform Base
2024-04-10 15:33alostaleTriggers an Emergency Pack => No
2024-04-10 16:07hgbotNote Added: 0163061
2024-04-21 22:59hgbotResolutionopen => fixed
2024-04-21 22:59hgbotNote Added: 0163476
2024-04-21 22:59hgbotStatusnew => closed
2024-04-21 22:59hgbotFixed in Version => 24Q3
2024-04-21 22:59hgbotNote Added: 0163477

Notes
(0163061)
hgbot   
2024-04-10 16:07   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1451 [^]
(0163476)
hgbot   
2024-04-21 22:59   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1451 [^]
(0163477)
hgbot   
2024-04-21 22:59   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: fd5c15b1022c673f21b630830acc56c8d5210e87
Author: Asier Lostalé <a.lostale@orisha.com>
Date: 21-04-2024 18:01:54
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/fd5c15b1022c673f21b630830acc56c8d5210e87 [^]

fixes BUG-55159: org not taken into account when checking approvals

---
M src-test/org/openbravo/core2/utility/CheckApprovalTest.java
M src/org/openbravo/core2/utility/CheckApproval.java
---