Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030442Retail ModulesCopy Retail Storepublic2015-07-28 15:362015-08-20 14:28
gorkaion 
gorkaion 
urgentmajorhave not tried
closedfixed 
20Gentoo
 
 
marvintm
No
0030442: Copy Store fails copying roles
The processes Copy Store fail when copying a Role with the following error

ERROR org.openbravo.retail.copystore.process.CopyStoreProcess - org.openbravo.retail.copystore.process.DefaultPropertiesHandler$RoleProperties$DocTypeRecon cannot be cast to org.openbravo.retail.copystore.process.DefaultPropertiesHandler$TerminalTypeProperties$DocTypeRecon
java.lang.ClassCastException: org.openbravo.retail.copystore.process.DefaultPropertiesHandler$RoleProperties$DocTypeRecon cannot be cast to org.openbravo.retail.copystore.process.DefaultPropertiesHandler$TerminalTypeProperties$DocTypeRecon
        at org.openbravo.retail.copystore.process.DocTypeRecon$Proxy$_$$_WeldClientProxy.handleProperty(DocTypeRecon$Proxy$_$$_WeldClientProxy.java)
        at org.openbravo.retail.copystore.process.CopyStoreProcess.cloneObject(CopyStoreProcess.java:373)
        at org.openbravo.retail.copystore.process.CopyStoreProcess.createRoles(CopyStoreProcess.java:716)
        at org.openbravo.retail.copystore.process.CopyStoreProcess.fixPermissions(CopyStoreProcess.java:666)
Go to the window Copy Retail Store, fill in all the fields selecting a store to copy that has a role that only has access to that organization.

Fill in the mandatory parameters and tap on "Done"

The error java.lang.ClassCastException: org.openbravo.retail.copystore.process.DefaultPropertiesHandler$RoleProperties$DocTypeRecon cannot be cast to org.openbravo.retail.copystore.process.DefaultPropertiesHandler$TerminalTypeProperties$DocTypeRecon

appears
Change the handler Class name to manage Role Names as in issue 0028108
No tags attached.
related to defect 0028108 closed adrianromero Copy Store and Copy Terminal fails 
Issue History
2015-07-28 15:36gorkaionNew Issue
2015-07-28 15:36gorkaionAssigned To => gorkaion
2015-07-28 15:36gorkaionTriggers an Emergency Pack => No
2015-07-28 15:36gorkaionIssue generated from0028108
2015-07-28 15:40hgbotCheckin
2015-07-28 15:40hgbotNote Added: 0079105
2015-07-28 15:40hgbotStatusnew => resolved
2015-07-28 15:40hgbotResolutionopen => fixed
2015-07-28 15:40hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.copystore/rev/eeac29e31b843752c04f50ffc237e03660073c8b [^]
2015-07-28 15:41gorkaionRelationship addedrelated to 0028108
2015-08-05 08:45gorkaionReview Assigned To => marvintm
2015-08-20 14:28marvintmStatusresolved => closed

Notes
(0079105)
hgbot   
2015-07-28 15:40   
Repository: erp/pmods/org.openbravo.retail.copystore
Changeset: eeac29e31b843752c04f50ffc237e03660073c8b
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Tue Jul 28 15:38:27 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.copystore/rev/eeac29e31b843752c04f50ffc237e03660073c8b [^]

Fixed issue 30442.Changed the class name of PropertyHandler for role names.

---
M src/org/openbravo/retail/copystore/process/DefaultPropertiesHandler.java
---