Openbravo Issue Tracking System - POS2
View Issue Details
0056887POS2POSpublic2024-10-24 14:542024-11-05 13:47
AugustoMauch 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
25Q1 
approved
No
No
0056887: Error when switching from POS to SCO using a user with access to the System Admin role
An error occurs when:
- a terminal is configured to support both POS and SCO
- the Login Method property of the SCO Configuration is "Use POS User"
- a user with access to the System Admin role swithces from POS to SCO

When that happens, the switch does not take place, a "Cannot read properties of undefined. Reading .organization
- Configure a terminal to support both POS and SCO
- Set "Use POS User" as Login Method in the SCO Configuration
- Log in in POS using the Openbravo user
- Click on the Switch to SCo button on the top right. The error will be reproduced
No tags attached.
Issue History
2024-10-24 14:54AugustoMauchNew Issue
2024-10-24 14:54AugustoMauchAssigned To => AugustoMauch
2024-10-24 14:54AugustoMauchOBNetwork customer => No
2024-10-24 14:54AugustoMauchTriggers an Emergency Pack => No
2024-10-24 14:54AugustoMauchStatusnew => scheduled
2024-10-24 14:56hgbotMerge Request Status => open
2024-10-24 14:56hgbotNote Added: 0170901
2024-10-24 15:10AugustoMauchSummaryError when switching from POS to SCO using the Openbravo user => Error when switching from POS to SCO using a user with access to the System Admin role
2024-11-05 11:54hgbotMerge Request Statusopen => approved
2024-11-05 13:47hgbotResolutionopen => fixed
2024-11-05 13:47hgbotStatusscheduled => closed
2024-11-05 13:47hgbotFixed in Version => 25Q1
2024-11-05 13:47hgbotNote Added: 0171418
2024-11-05 13:47hgbotNote Added: 0171419

Notes
(0170901)
hgbot   
2024-10-24 14:56   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1622 [^]
(0171418)
hgbot   
2024-11-05 13:47   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 86125eeb627201a8f1eca9bc060994eb997b1065
Author: Augusto Mauch <a.mauch@orisha.com>
Date: 05-11-2024 11:52:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/86125eeb627201a8f1eca9bc060994eb997b1065 [^]

Fixes ISSUE-56887: Select proper role when switching from POS to SCO

The problem was that depending on the user/role configuration, sometimes the System Admin role was
proposed to be used when switching from POS to SCO.

The fix this problem, now when looking for the proposed role a client filter is added, to ensure
that the role is not from the System client

---
M src/org/openbravo/core2/process/SwitchApplicationMode.java
---
(0171419)
hgbot   
2024-11-05 13:47   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1622 [^]