Openbravo Issue Tracking System - Retail Modules
View Issue Details
0050392Retail ModulesCopy Retail Storepublic2022-10-03 15:242022-11-18 12:11
rafaroda 
montse_cabanas 
normalmajorhave not tried
closedfixed 
5
 
 
approved
No
No
0050392: Add new stores created via Copy Retail Store to existing roles
Add new stores created via Copy Retail Store to existing roles

If we create a role Marketing France, and we want it to assign a Discount and Promotions to a specific store A, we need this store A to be in Role window > Org Access subtab of role Marketing France, see related 0049943

In order to make this role sustainable in term of Org Access, we need to have an easy way to do, in the process of Copy Retail Store, to add automatically the store in the Org Access tab of this Role

https://openbravo.atlassian.net/browse/RM-1977 [^]
1) Have a role that is aimed to be affected to all stores in org Access: for instance, headquarters Marketing France, where in Org Access you need to add all the stores in order to properly define Discounts and Promotions for that stores

2) When you do a Copy Store to create a new store: today, this store is NOT added to the list of stores of rol Marketing France (this role is manual, NOT automatic)
NEW PROPOSED SOLUTION based on fesign "CRS - Role inheritance" https://docs.google.com/document/d/1rBWc_PQDdsvy6ig7LtYfckfiryZRLkWK/edit [^]


In the Excel file used in Copy Retail Store: provide a new sheet to that excel template to inform which of the existing roles should inherit permissions for the newly created store/organization:

When the process is run, all those informed roles (inside the new sheet described above) should be granted permissions for the newly created organization.
FASH
related to defect 0049943 closed montse_cabanas Openbravo ERP Discounts and Promotions - Add Organizations button and roles odd behavior 
png Screenshot from 2022-11-03 13-23-58.png (15,931) 2022-11-03 13:24
https://issues.openbravo.com/file_download.php?file_id=17748&type=bug
png
Issue History
2022-10-03 15:24rafarodaNew Issue
2022-10-03 15:24rafarodaAssigned To => Retail
2022-10-03 15:24rafarodaOBNetwork customer => No
2022-10-03 15:24rafarodaTriggers an Emergency Pack => No
2022-10-03 15:25rafarodaTag Attached: FASH
2022-10-20 15:54rafarodaRelationship addedrelated to 0049943
2022-11-03 13:24rafarodaProposed Solution updated
2022-11-03 13:24rafarodaAssigned ToRetail => montse_cabanas
2022-11-03 13:24rafarodaFile Added: Screenshot from 2022-11-03 13-23-58.png
2022-11-03 13:37aferrazDescription Updatedbug_revision_view_page.php?rev_id=25043#r25043
2022-11-16 16:46hgbotMerge Request Status => open
2022-11-16 16:46hgbotNote Added: 0143730
2022-11-17 16:41hgbotNote Added: 0143799
2022-11-18 12:06hgbotMerge Request Statusopen => approved
2022-11-18 12:08hgbotResolutionopen => fixed
2022-11-18 12:08hgbotStatusnew => closed
2022-11-18 12:08hgbotNote Added: 0143822
2022-11-18 12:08hgbotNote Added: 0143823
2022-11-18 12:11hgbotNote Added: 0143824
2022-11-18 12:11hgbotNote Added: 0143825

Notes
(0143730)
hgbot   
2022-11-16 16:46   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore/-/merge_requests/37 [^]
(0143799)
hgbot   
2022-11-17 16:41   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore.excel/-/merge_requests/6 [^]
(0143822)
hgbot   
2022-11-18 12:08   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore [^]
Changeset: 962ec5f95a9271cb7241ff68ac90b80afa265d5c
Author: Montserrat Cabañas <montserrat.cabanas@openbravo.com>
Date: 18-11-2022 11:08:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore/-/commit/962ec5f95a9271cb7241ff68ac90b80afa265d5c [^]

Fixes FR-50392: Added Role inheritance tab to define the roles that should inherit access to the new organization

---
A src/org/openbravo/retail/copystore/process/RoleInheritanceProcess.java
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0143823)
hgbot   
2022-11-18 12:08   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore/-/merge_requests/37 [^]
(0143824)
hgbot   
2022-11-18 12:11   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore.excel/-/merge_requests/6 [^]
(0143825)
hgbot   
2022-11-18 12:11   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore.excel [^]
Changeset: d24e169b8939a96e0fabbd99d0190c59f60ee8fe
Author: Montserrat Cabañas <montserrat.cabanas@openbravo.com>
Date: 18-11-2022 11:11:38
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore.excel/-/commit/d24e169b8939a96e0fabbd99d0190c59f60ee8fe [^]

Fixes FR-50392: Added Role inheritance tab to define the roles that should inherit access to the new organization

---
M examples/OBPOSCE Example.xlsx
M src-db/database/sourcedata/OBPOSCS_CONFIGURATION.xml
---