Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027889Openbravo ERP01. General setuppublic2014-10-16 16:042014-10-17 13:52
lorenzofidalgo 
dmiguelez 
normalmajoralways
closedfixed 
5
 
3.0PR14Q4 
Orekaria
Google Chrome
Core
Packaging and release
3.0PR14Q3.1
No
0027889: In POS, Menu | User | Role change does NOT work properly
When you change your role in POS it does not change correctly. You have to change twice for getting the access that the role should provide you.

To change your role to work in POS was possible in Q2 (without the need to change user role in POS twice to be able to have the access provided for that role). But in Q3 this works different but worse.
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 go to POS and log in as manualuser/openbravo
(You must realise that you have the "PRICE" feature disabled). Go to the menu and go to User | Profile, and select "FranchiseValleyUser" role and Apply. Realise that PRICE feature is disabled. Go to Menu | User | Profile again and select "FranchiseValleyUser" role and Apply. You will now have "PRICE" feature enabled.


No tags attached.
related to defect 0027891 closed Osmany Retail Modules "Set as default" role does NOT work properly in POS 
related to defect 0027893 closed marvintm Retail Modules In POS, Menu | User | Profile, selecting a different role and Apply does NOT work. In Q2 this works. 
png Roles Issue Q4.png (391,899) 2014-10-16 16:04
https://issues.openbravo.com/file_download.php?file_id=7373&type=bug
? Doesn\'t let me use %22Price%22 feature but it should (196,492) 2014-10-16 16:05
https://issues.openbravo.com/file_download.php?file_id=7374&type=bug
png I can use %22Price%22 feature, but I shouldnt be able to.png (159,763) 2014-10-16 16:06
https://issues.openbravo.com/file_download.php?file_id=7375&type=bug
png
Issue History
2014-10-16 16:04lorenzofidalgoNew Issue
2014-10-16 16:04lorenzofidalgoAssigned To => dmiguelez
2014-10-16 16:04lorenzofidalgoFile Added: Roles Issue Q4.png
2014-10-16 16:04lorenzofidalgoWeb browser => Google Chrome
2014-10-16 16:04lorenzofidalgoModules => Core
2014-10-16 16:04lorenzofidalgoRegression level => Packaging and release
2014-10-16 16:04lorenzofidalgoRegression introduced in release => 3.0PR14Q3.1
2014-10-16 16:04lorenzofidalgoTriggers an Emergency Pack => No
2014-10-16 16:05lorenzofidalgoFile Added: Doesn\'t let me use %22Price%22 feature but it should
2014-10-16 16:06lorenzofidalgoFile Added: I can use %22Price%22 feature, but I shouldnt be able to.png
2014-10-16 16:15lorenzofidalgoWeb browserGoogle Chrome => Google Chrome
2014-10-16 16:15lorenzofidalgoDescription Updatedbug_revision_view_page.php?rev_id=6823#r6823
2014-10-16 16:15lorenzofidalgoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6825#r6825
2014-10-16 17:11lorenzofidalgoRelationship addedrelated to 0027891
2014-10-16 17:47lorenzofidalgoRelationship addedrelated to 0027893
2014-10-17 13:40hgbotCheckin
2014-10-17 13:40hgbotNote Added: 0071031
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:52OrekariaReview Assigned To => Orekaria
2014-10-17 13:52OrekariaStatusresolved => closed
2014-10-17 13:52OrekariaFixed in Version => 3.0PR14Q4

Notes
(0071031)
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
---