Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027893Retail ModulesRetail Configurationpublic2014-10-16 17:372014-10-17 13:51
lorenzofidalgo 
marvintm 
urgentmajoralways
closedfixed 
5
 
RR14Q3 
Orekaria
Production - QA Approved
RR14Q3
No
0027893: In POS, Menu | User | Profile, selecting a different role and Apply does NOT work. In Q2 this works.
To change your user role in Menu | User | Profile, change role, apply does NOT work. A popup appears and the application kicks you out.

If you insist trying to login, the application can crash and shows you several different errors.
I add some screenshots for showing this.
If you need a user with different roles to try this:

In POS backend: [RR14Q4]
Login into ERP System:

"Username": Openbravo
"Password": openbravo
Change the role as “The White Valley Group Admin”

Navigate to User window (General Setup || Security || User)

Create a new record (Ctrl + D)

To create a new user, enter the below user details

Client: The White Valley Group
Organization: *
Name: manualuser
Username: manualuser
Password: openbravo
Click Ctrl + s to save the details

Then navigate to POS Terminal Access tab

Click Ctrl + D to add a new record

Then enter POS Terminal: CMS POS Terminal (This will depend on your terminal)
Click Ctrl + S to save the details


Navigate to Role window (General Setup || Security || Role)

Create a new record by clicking the hot keys Ctrl + D

To create a new user role, enter the below user details

Client: The White Valley Group
Organization: *
Name: Manual User Role
User level: Organization
Manual: Checked
Restricted Backend access: Checked
Click Ctrl + s to save the details

Then navigate to Org Access tab

Click Create one link to add new record

Organization: Central Mountains Store (This again depends on your terminal) (I will assume that you are using CMS-1 POS terminal)
Organization Administrator: No
Then navigate to User Assignment tab

Click Create one link to add new record

Then select below details

User/Contact: manualuser
Role Administrator: Unchecked
Then navigate to Form Access

Click Create one link to add new record

Then select below details

Special Form: Web POS
Click Ctrl + s to save the details


Go again to User window, select manualuser record and go to "User Roles" tab.
Create new record and add "the white valley group admin" role and set it as active.
Create new record and add "FranchiseValleyUser" role and set it as active.
(Now you should have 3 roles: "manual user role", "the white valley group admin" and "FranchiseValleyUser").

--

Now you go to POS and login as manualuser/openbravo.

Assuming that your default role is "Manual User Role", select in POS Menu | "User" | "Profile" and you select a role different than the one already chosen. For example, "The White Valley Group Admin", "Set as default" and apply it.

The popup will appear and will kick you out.
--
Now, follow the same process again several times and this will can crash eventually:

LogIn as manualuser/openbravo, go to POS Menu | "User" | "Profile" and you select a role different than the one already chosen. For example, "The White Valley Group Admin", "Set as default" and apply it. It will kick you out again, and repear this process until it crashes.
No tags attached.
related to defect 0027889 closed dmiguelez Openbravo ERP In POS, Menu | User | Role change does NOT work properly 
png Q3 Failure1. Context.png (235,475) 2014-10-16 17:37
https://issues.openbravo.com/file_download.php?file_id=7379&type=bug
png

png Failure2.png (11,562) 2014-10-16 17:38
https://issues.openbravo.com/file_download.php?file_id=7380&type=bug
png

png Failure3.png (266,666) 2014-10-16 17:38
https://issues.openbravo.com/file_download.php?file_id=7381&type=bug
png failure 4.png (145,097) 2014-10-16 17:38
https://issues.openbravo.com/file_download.php?file_id=7382&type=bug
png

png failure7.png (159,363) 2014-10-16 17:42
https://issues.openbravo.com/file_download.php?file_id=7385&type=bug
png
Issue History
2014-10-16 17:37lorenzofidalgoNew Issue
2014-10-16 17:37lorenzofidalgoAssigned To => marvintm
2014-10-16 17:37lorenzofidalgoFile Added: Q3 Failure1. Context.png
2014-10-16 17:37lorenzofidalgoRegression level => Production - QA Approved
2014-10-16 17:37lorenzofidalgoRegression introduced in release => RR14Q3
2014-10-16 17:37lorenzofidalgoTriggers an Emergency Pack => No
2014-10-16 17:38lorenzofidalgoFile Added: Failure2.png
2014-10-16 17:38lorenzofidalgoFile Added: Failure3.png
2014-10-16 17:38lorenzofidalgoFile Added: failure 4.png
2014-10-16 17:42lorenzofidalgoFile Added: failure7.png
2014-10-16 17:45lorenzofidalgoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6827#r6827
2014-10-16 17:47lorenzofidalgoRelationship addedrelated to 0027889
2014-10-17 13:40hgbotCheckin
2014-10-17 13:40hgbotNote Added: 0071032
2014-10-17 13:40hgbotStatusnew => resolved
2014-10-17 13:40hgbotResolutionopen => fixed
2014-10-17 13:40hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/55931ce032bff8c3db95f1f7e21bd7a327edd6e2 [^]
2014-10-17 13:51OrekariaReview Assigned To => Orekaria
2014-10-17 13:51OrekariaStatusresolved => closed
2014-10-17 13:51OrekariaFixed in Version => RR14Q3

Notes
(0071032)
hgbot   
2014-10-17 13:40   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 55931ce032bff8c3db95f1f7e21bd7a327edd6e2
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Oct 17 13:39:41 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/55931ce032bff8c3db95f1f7e21bd7a327edd6e2 [^]

Fixed issue 27889. Fixed issue 27893. If the context information (role, organization, ...) is changed, the user information cache will no longer be used.
This ensures that all needed information is reloaded correctly from the backend.

---
M web/org.openbravo.mobile.core/source/component/dialog/ob-profile.js
---