Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045351Retail ModulesCopy Retail Storepublic2020-11-02 08:542020-11-16 06:30
rafaroda 
marvintm 
normalmajorhave not tried
closedno change required 
5
 
 
marvintm
No
0045351: Copy Terminal and Unlink Physical Device do wrong Organization evaluation
Copy Terminal and Unlink Physical Device do wrong Organization evaluation
* If I'm an user with Role assigned to France summary organization
* I'm not able to do Copy Terminal nor Unlink Physical Device for the terminal of 1 store
* Create a role that has Organization _= France (country level organization)
* With that user and role go to Touchpoint Type: do a copy terminal of a terminal of a store: you get an error
* Same if you try to do Unlink Physical Device
CopyRetailStore, NOR
png Screenshot from 2020-11-02 08-46-51.png (91,677) 2020-11-02 08:55
https://issues.openbravo.com/file_download.php?file_id=15065&type=bug
png

png 73cb106b-874d-4f02-8685-be012ef7bc4f.png (43,046) 2020-11-02 08:55
https://issues.openbravo.com/file_download.php?file_id=15066&type=bug
png

diff unlinkDevice.diff (4,096) 2020-11-14 13:37
https://issues.openbravo.com/file_download.php?file_id=15087&type=bug
diff copyStore.diff (2,651) 2020-11-14 13:38
https://issues.openbravo.com/file_download.php?file_id=15088&type=bug
Issue History
2020-11-02 08:54rafarodaNew Issue
2020-11-02 08:54rafarodaAssigned To => Retail
2020-11-02 08:54rafarodaResolution time => 1605567600
2020-11-02 08:54rafarodaTriggers an Emergency Pack => No
2020-11-02 08:55rafarodaTag Attached: NOR
2020-11-02 08:55rafarodaTag Attached: CopyRetailStore
2020-11-02 08:55rafarodaFile Added: Screenshot from 2020-11-02 08-46-51.png
2020-11-02 08:55rafarodaFile Added: 73cb106b-874d-4f02-8685-be012ef7bc4f.png
2020-11-02 11:25marvintmNote Added: 0124091
2020-11-02 11:25marvintmAssigned ToRetail => rafaroda
2020-11-02 11:25marvintmStatusnew => feedback
2020-11-02 11:25marvintmNote Edited: 0124091bug_revision_view_page.php?bugnote_id=0124091#r21850
2020-11-06 10:05rafarodaNote Added: 0124208
2020-11-13 12:56rafarodaAssigned Torafaroda => marvintm
2020-11-13 12:56rafarodaStatusfeedback => new
2020-11-14 13:37AugustoMauchFile Added: unlinkDevice.diff
2020-11-14 13:38AugustoMauchFile Added: copyStore.diff
2020-11-14 13:39AugustoMauchNote Added: 0124372
2020-11-14 16:16rafarodaNote Added: 0124373
2020-11-16 06:30marvintmReview Assigned To => marvintm
2020-11-16 06:30marvintmNote Added: 0124377
2020-11-16 06:30marvintmStatusnew => closed
2020-11-16 06:30marvintmResolutionopen => no change required

Notes
(0124091)
marvintm   
2020-11-02 11:25   
As far as I can see that problem seems to happen because your current role doesn't have access to the organisation in which the terminal is defined on, right?

So, your current organisation doesn't actually matter I think. What matters is the organisations your current role has access to. Can you confirm whether your current role has access to that particular store?

(0124208)
rafaroda   
2020-11-06 10:05   
Antonio: "seems to happen because your current role doesn't have access to the organisation in which the terminal is defined on"
* The current role I'm trying to use has organization "Norauto France" since I am the Norauto France IT guy
* We can't expect to put in Role window > Organizaiton tab each time a store opens a new record.
* I understand that being in Norauto France organization I'm able to do actions on all the stores below (all the French stores)
(0124372)
AugustoMauch   
2020-11-14 13:39   
Patch proposals attached.

In any case I think this is a configuration issue. If a given role cannot manually create a new terminal from scratch in a given organization, I don't see why it should be able to do it using the copy terminal process
(0124373)
rafaroda   
2020-11-14 16:16   
Extra comment by Augusto: "that's how the organization access model works in Openbravo. If a role includes an organization in its Org Access tab, it gets write permissions on records referencing that organization, and automatic read access to all the organizations in its natural tree. If a role wants write permissions to records belonging to an organization, it must explicitly include that organization in its Org Access tab. " http://wiki.openbravo.com/wiki/Role [^]
(0124377)
marvintm   
2020-11-16 06:30   
As discussed internally, the OB Org/Security model currently works in this way: you need to have explicit org access in your role to be able to modify records in specific organisations.