Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013283Openbravo ERPA. Platformpublic2010-05-11 07:472010-05-18 21:44
mtaal 
mtaal 
normalmajorhave not tried
closedfixed 
5
pi 
2.50MP17 
Core
No
0013283: [REST] use organization of the object to retrieved referenced objects
Currently the XML entity conversion uses the organization of the user to find referenced objects. However, in the standard Openbravo user interface it is often possible to change or set the organization for a record. The comboboxes are then initialized using this selected organization.

The same logic should be applied/implemented in REST also. So if an object has an organization then that organization should be used to read referenced information.
No tags attached.
related to defect 00132812.50MP17 closed mtaal [REST] when inserting an object through REST allow setting the organization through xml 
Issue History
2010-05-11 07:47mtaalNew Issue
2010-05-11 07:47mtaalAssigned To => mtaal
2010-05-11 07:47mtaalRelationship addedrelated to 0013281
2010-05-11 13:24hgbotCheckin
2010-05-11 13:24hgbotNote Added: 0027134
2010-05-11 13:24hgbotStatusnew => resolved
2010-05-11 13:24hgbotResolutionopen => fixed
2010-05-11 13:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b27cb4c80a74ce23b5d861cfc32f1313fefa2c7d [^]
2010-05-11 18:19jpabloaeTarget Version2.50MP16 => 2.50MP17
2010-05-14 19:05iperdomoNote Added: 0027323
2010-05-14 19:05iperdomoStatusresolved => closed
2010-05-15 00:01anonymoussf_bug_id0 => 3001865
2010-05-18 21:44hudsonbotCheckin
2010-05-18 21:44hudsonbotNote Added: 0027513

Notes
(0027134)
hgbot   
2010-05-11 13:24   
Repository: erp/devel/pi
Changeset: b27cb4c80a74ce23b5d861cfc32f1313fefa2c7d
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue May 11 13:23:41 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b27cb4c80a74ce23b5d861cfc32f1313fefa2c7d [^]

Fixes issue 13281: [REST] when inserting an object through REST allow setting the organization through xml
Fixes issue 13283: [REST] use organization of the object to retrieved referenced objects

---
M src-test/org/openbravo/test/dal/IssuesTest.java
M src/org/openbravo/dal/xml/XMLEntityConverter.java
A src-test/org/openbravo/test/dal/test_13281.xml
---
(0027323)
iperdomo   
2010-05-14 19:05   
Tested using the Issue test on PI @ rev d58960feb659
(0027513)
hudsonbot   
2010-05-18 21:44   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/b27cb4c80a74 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/aa11838d5f80 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17380.obx [^]