Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019203Openbravo ERP01. General setuppublic2011-11-30 12:092012-01-17 03:01
VictorVillar 
jecharri 
highminoralways
closedfixed 
5
3.0MP5.1 
3.0MP8 
Core
No
0019203: Localization/Adress field does not save in Organization window
The localization/address field does not save in Organization window when at the beginning is blank and you try to put a new one. It happens when you are logged with one organization different to the organization you try to put the address and your organization logged does not part of the natural tree of the organization that you try to put the address.

 It does not happen when you modify the localization/address field, it means, it exists an adress, and you change it, it does not matter the organization you are logged.
As F&B International Group Admin Role -- organization: F&B España, S.A.- Región Sur

Navigate to Organization window:
   - select F&B Us, Inc. organization (organization in a different natural tree)
go to Information tab:
   -Delete the address
   -save it
- Write a new address
- Save it.
We can see an error: Saving failed. With your current role this action is not allowed.

Here is the error:

2011-11-30 10:37:48,590 [ajp-8009-11] ERROR org.openbravo.service.json.DefaultJsonDataService - Entity B9C7088AB859483A9B1FB342AC2BE17A - F&B US, Inc. (OrganizationInformation) with organization F&B US, Inc. references an entity aa - - - - Ciudad Aut?noma de Ceuta - Spain through its property locationAddress but this referenced entity belongs to an organization F&B Espa?a - Regi?n Sur which is not part of the natural tree of F&B US, Inc.
No tags attached.
Issue History
2011-11-30 12:09VictorVillarNew Issue
2011-11-30 12:09VictorVillarAssigned To => jonalegriaesarte
2011-11-30 12:09VictorVillarModules => Core
2011-11-30 12:09VictorVillarResolution time => 1328482800
2012-01-10 10:33jonalegriaesarteAssigned Tojonalegriaesarte => jecharri
2012-01-12 13:29hgbotCheckin
2012-01-12 13:29hgbotNote Added: 0044299
2012-01-12 13:29hgbotStatusnew => resolved
2012-01-12 13:29hgbotResolutionopen => fixed
2012-01-12 13:29hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9f6b45ab8deda0f2c24432eba99f4b70c7c169c2 [^]
2012-01-12 15:32hgbotCheckin
2012-01-12 15:32hgbotNote Added: 0044300
2012-01-12 15:35hgbotCheckin
2012-01-12 15:35hgbotNote Added: 0044301
2012-01-13 11:03VictorVillarNote Added: 0044322
2012-01-13 11:03VictorVillarStatusresolved => closed
2012-01-13 15:06hgbotCheckin
2012-01-13 15:06hgbotNote Added: 0044327
2012-01-14 14:41hgbotCheckin
2012-01-14 14:41hgbotNote Added: 0044333
2012-01-14 21:21hudsonbotCheckin
2012-01-14 21:21hudsonbotNote Added: 0044379
2012-01-14 21:21hudsonbotCheckin
2012-01-14 21:21hudsonbotNote Added: 0044380
2012-01-14 21:21hudsonbotCheckin
2012-01-14 21:21hudsonbotNote Added: 0044381
2012-01-14 21:21hudsonbotCheckin
2012-01-14 21:21hudsonbotNote Added: 0044388
2012-01-17 03:01hudsonbotCheckin
2012-01-17 03:01hudsonbotNote Added: 0044414

Notes
(0044299)
hgbot   
2012-01-12 13:29   
Repository: erp/devel/pi
Changeset: 9f6b45ab8deda0f2c24432eba99f4b70c7c169c2
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Thu Jan 12 13:25:14 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/9f6b45ab8deda0f2c24432eba99f4b70c7c169c2 [^]

Fixes issue 19203: Localization/Adress field does not save in Organization window

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/info/Location.java
---
(0044300)
hgbot   
2012-01-12 15:32   
Repository: erp/devel/pi
Changeset: fa7f01362abc017b10e0e88f0f4ae1a78d53490b
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Thu Jan 12 15:31:02 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/fa7f01362abc017b10e0e88f0f4ae1a78d53490b [^]

issue 19203: Localization/Adress field does not save in Organization window.
I only throw the exception when you try to put a Location but you don't have defined the ad_org_id. Apart from that, and to solve the previous exception I have added one read only logic to the field Location. This field is not going to be updatable until the record has been saved.

---
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/info/Location.java
---
(0044301)
hgbot   
2012-01-12 15:35   
Repository: erp/devel/pi
Changeset: b86524a0f8665c8dbec5aa34d8ee6f2c13633be8
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Thu Jan 12 15:34:40 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/b86524a0f8665c8dbec5aa34d8ee6f2c13633be8 [^]

Issue 19203: Localization/Adress field does not save in Organization window

---
M src/org/openbravo/erpCommon/info/Location_F1.html
M src/org/openbravo/erpCommon/info/Location_F1.xml
---
(0044322)
VictorVillar   
2012-01-13 11:03   
verified
(0044327)
hgbot   
2012-01-13 15:06   
Repository: erp/devel/pi
Changeset: 64738cd965413439e825b9aa2e3ae6b2d1061881
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Fri Jan 13 15:05:54 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/64738cd965413439e825b9aa2e3ae6b2d1061881 [^]

Fixes issue 19487, issue 19203.
I have deleted the message because it is not going to be use more and I have changed the code to get the value of the ad_org_id. Now if the value of inpadOrgId is null I go to the window to get the value.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/info/Location.java
---
(0044333)
hgbot   
2012-01-14 14:41   
Repository: erp/devel/pi
Changeset: c8b54c75c7a13980090bb11a7e228aabe079c4ea
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Sat Jan 14 14:40:03 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/c8b54c75c7a13980090bb11a7e228aabe079c4ea [^]

issue 19203: Localization/Adress field does not save in Organization window.
Delete the read only logic because now is not necesary (changeset 64738cd96541)

---
M src-db/database/sourcedata/AD_AUXILIARINPUT.xml
M src-db/database/sourcedata/AD_CALLOUT.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_DATASET.xml
M src-db/database/sourcedata/AD_DATASET_COLUMN.xml
M src-db/database/sourcedata/AD_DATASET_TABLE.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_EXTENSION_POINTS.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_FIELDGROUP.xml
M src-db/database/sourcedata/AD_FORM.xml
M src-db/database/sourcedata/AD_MENU.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT_PARA.xml
M src-db/database/sourcedata/AD_MODULE.xml
M src-db/database/sourcedata/AD_MODULE_DBPREFIX.xml
M src-db/database/sourcedata/AD_PACKAGE.xml
M src-db/database/sourcedata/AD_PREFERENCE.xml
M src-db/database/sourcedata/AD_PROCESS.xml
M src-db/database/sourcedata/AD_PROCESS_PARA.xml
M src-db/database/sourcedata/AD_REFERENCE.xml
M src-db/database/sourcedata/AD_REF_LIST.xml
M src-db/database/sourcedata/AD_REF_SEARCH.xml
M src-db/database/sourcedata/AD_REF_SEARCH_COLUMN.xml
M src-db/database/sourcedata/AD_REF_TABLE.xml
M src-db/database/sourcedata/AD_TAB.xml
M src-db/database/sourcedata/AD_TABLE.xml
M src-db/database/sourcedata/AD_TEXTINTERFACES.xml
M src-db/database/sourcedata/AD_TREENODE.xml
M src-db/database/sourcedata/AD_VAL_RULE.xml
M src-db/database/sourcedata/AD_WINDOW.xml
M src-db/database/sourcedata/OBCLKER_UIDEFINITION.xml
M src-db/database/sourcedata/OBUIAPP_PARAMETER.xml
M src-db/database/sourcedata/OBUIAPP_PROCESS.xml
M src-db/database/sourcedata/OBUIAPP_REF_WINDOW.xml
M src-db/database/sourcedata/OBUISEL_SELECTOR.xml
M src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml
---
(0044379)
hudsonbot   
2012-01-14 21:21   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/0f91795528e4 [^]

Maturity status: Test
(0044380)
hudsonbot   
2012-01-14 21:21   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/0f91795528e4 [^]

Maturity status: Test
(0044381)
hudsonbot   
2012-01-14 21:21   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/0f91795528e4 [^]

Maturity status: Test
(0044388)
hudsonbot   
2012-01-14 21:21   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/0f91795528e4 [^]

Maturity status: Test
(0044414)
hudsonbot   
2012-01-17 03:01   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/975da45b8cf5 [^]

Maturity status: Test