Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022738Openbravo ERP01. General setuppublic2013-01-08 13:302013-01-10 18:15
vmromanos 
dmiguelez 
immediatemajoralways
closedfixed 
20Debian 5.0
3.0MP16.3 
 
marvintm
Core
Production - Confirmed Stable
2012-09-26
https://code.openbravo.com/erp/devel/pi/rev/9d212ece87cbc923b5ff28352139e9fa24e9b12f [^]
Yes
0022738: Organization level datasets applied to different organizations
We have a client with several organizations and we want to apply the same dataset (organization data access level) to different organizations.
When we apply it for the first time, it works fine. However, when we try to apply it to other organization, no records are inserted into the database.

It's a regression that affects MPs greater than 3.0MP15.2:
+ 3.0MP16
+ 3.0MP17
+ 3.0MP18
I have been able to reproduce it using the Spanish Modelo 390 module, which contains an organization level dataset:

1. Inside 3.0MP18.1, install the Spanish Modelo 390 module
2. Create a new client using the Initial Client Setup and select the Spanish Taxes dataset
3. Log into the new client and run an Initial Org Setup. Select the 390 dataset and create it. It works fine (237 rows inserted)
4. Repeat step 3 with other organization. The number of rows inserted should be the same as in the previous step, but it's 0.
No tags attached.
related to defect 0023801 closed AugustoMauch XML REST Webservices identifier property is not working 
Issue History
2013-01-08 13:30vmromanosNew Issue
2013-01-08 13:30vmromanosAssigned To => dmiguelez
2013-01-08 13:30vmromanosModules => Core
2013-01-08 13:30vmromanosTriggers an Emergency Pack => No
2013-01-08 13:31vmromanosTriggers an Emergency PackNo => Yes
2013-01-10 10:59miruritaRegression level => Production - Confirmed Stable
2013-01-10 10:59miruritaRegression date => 2012-09-26
2013-01-10 10:59miruritaRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/9d212ece87cbc923b5ff28352139e9fa24e9b12f [^]
2013-01-10 12:48priyamIssue Monitored: priyam
2013-01-10 15:51hgbotCheckin
2013-01-10 15:51hgbotNote Added: 0055464
2013-01-10 15:51hgbotStatusnew => resolved
2013-01-10 15:51hgbotResolutionopen => fixed
2013-01-10 15:51hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/8525372a1fce7047ee3baead23e1ddfc208b6dd9 [^]
2013-01-10 18:15marvintmReview Assigned To => marvintm
2013-01-10 18:15marvintmStatusresolved => closed
2013-05-13 15:52AugustoMauchRelationship addedrelated to 0023801

Notes
(0055464)
hgbot   
2013-01-10 15:51   
Repository: erp/devel/pi
Changeset: 8525372a1fce7047ee3baead23e1ddfc208b6dd9
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Jan 10 15:50:42 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/8525372a1fce7047ee3baead23e1ddfc208b6dd9 [^]

Fixes issue 22738: Enables applying the same dataset to different organizations

The getOrgIds nethod of the EntityResolver class has been backed out to the version before the changeset that causes the regression.

Now when the EntityResolver is used from the DAL webservices, it will not try to look for the translated IDs, it will just try to get the item with DAL,using DALs client and organization checks.

---
M src/org/openbravo/dal/xml/EntityResolver.java
M src/org/openbravo/service/rest/DalWebService.java
---