Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007865Openbravo ERPA. Platformpublic2009-02-27 11:252009-04-22 00:01
mtaal 
rafaroda 
normalmajorhave not tried
closedfixed 
5
pi 
pi2.50 
Core
No
0007865: Import client should also convert the name of the Role and Warehouse
See this email conversation:

Fully agree, for both Role and Warehouse

Ismael

-----Mensaje original-----
De: Martin Taal [mailto:martin.taal@openbravo.com]
Enviado el: lunes, 23 de febrero de 2009 10:13
Para: Ismael Ciordia, Openbravo
CC: rok.lenardic@openbravo.com; Renate Nieuwkoop
Asunto: Re: import client


Hi Ismael,
See below. I think we discussed this. Currently the logic works
differently for different entities:
1- the new client name is pre/appended to the name of the entity, or
2- if the old client name is present in the name of the entity then it
is replaced with the new client name (so if the client name is A and the
role is called A_role1, the new client is B then the new role name will
be B_role1)

Here is the description per entity:
- Client: gets the new name
- Role: uses approach 2
- User: first 2 or if the old client name is not present then approach 1
is followed
- Organization: approach 2
- Warehouse: approach 2

To solve the issue below mentioned by Rok, I would say that also for
Role we should use the same approach as for User: so first try approach
2 and then approach 1.
Maybe the same for warehouse.

Let me know your thoughts. (the change is small, although the test takes
an hour or so).

gr. Martin

Rok Lenardic wrote:
> > Hey Martin,
> >
> > since export/import replaces the copy client process which is a crucial
> > process for us in training to copy bigbazaar 10 times for 10 students
> > for example, we are missing one function. If I rename BigBazaar.xml into
> > Company01.xml and then import it, the process is successful, however,
> > the problem occurs with roles, my Openbravo user now has access to twice
> > as many roles with the same name, each role gets duplicated.
> > previously, the copy client prefixed copied roles with client name, so
> > the Openbravo Admin role became Company01_Openbravo Admin role, etc.
> >
> > Now when I switch role i see two identical Openbravo Admin roles and I
> > can't distiguish which one is which. see what i mean?
> >
> > can you think of a solution to this? maybe a parameter to the Import
> > Client such as a 'Duplicate Client' checkbox that would then take care
> > of prefixing roles with client name?
> >
> > Cheers
> > Rok
> >
> >
> >


No tags attached.
Issue History
2009-02-27 11:25mtaalNew Issue
2009-02-27 11:25mtaalAssigned To => mtaal
2009-02-27 11:25mtaalRegression testing => No
2009-03-03 13:28rafarodaStatusnew => scheduled
2009-03-03 13:28rafarodafix_in_branch => trunk
2009-03-04 09:45hgbotCheckin
2009-03-04 09:45hgbotNote Added: 0014373
2009-03-04 09:45hgbotStatusscheduled => resolved
2009-03-04 09:45hgbotResolutionopen => fixed
2009-03-04 09:45hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f67593555336d41084d811f993c5ee64f7f896b5 [^]
2009-03-24 16:37roklenardicNote Added: 0014906
2009-03-24 16:42roklenardicAssigned Tomtaal => rafaroda
2009-03-24 16:42roklenardicStatusresolved => new
2009-03-24 16:42roklenardicResolutionfixed => open
2009-03-24 16:42roklenardicNote Added: 0014907
2009-03-30 19:40psarobeNote Added: 0015076
2009-03-30 19:40psarobeStatusnew => scheduled
2009-03-30 19:40psarobeStatusscheduled => resolved
2009-03-30 19:40psarobeResolutionopen => fixed
2009-04-21 10:53psarobeStatusresolved => closed
2009-04-22 00:01anonymoussf_bug_id0 => 2778033

Notes
(0014373)
hgbot   
2009-03-04 09:45   
Repository: erp/devel/pi
Changeset: f67593555336d41084d811f993c5ee64f7f896b5
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Mar 04 09:42:25 2009 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/f67593555336d41084d811f993c5ee64f7f896b5 [^]

Fixes issue 7865, Import client should also convert the name of the Role and Warehouse

---
M src/org/openbravo/service/db/ClientImportProcessor.java
M src/org/openbravo/service/db/DataImportService.java
---
(0014906)
roklenardic   
2009-03-24 16:37   
This issue has not been solved for 2.50beta which is of the utmost importance for training. It needs to be backported to 2.50.
(0014907)
roklenardic   
2009-03-24 16:42   
This issue has not been backported to 2.50 beta and is very important for training.
(0015076)
psarobe   
2009-03-30 19:40   
Rock,

There is no backport for 250beta you will need to take the fix from pi and apply it to your working copy. Please ask Martin for the diff