Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025630Openbravo ERPA. Platformpublic2014-01-31 15:302014-12-17 18:23
caristu 
AugustoMauch 
immediatemajoralways
closedfixed 
5
 
3.0PR14Q2 
alostale
Core
No
0025630: Reference list not retrieved correctly if there exists a property field in the window with a particular name
If we have a field that references a column that uses a list reference, and the name of this column is the same as another column referenced by a property field in the same window, then the first field reference list is not retrieve correctly. It uses the list of the property field.
1) Create a new column for the sales order window.
2) Create a new reference whose parent reference be List (List 1) and assign to the column created in step 1)
3) Create a new column with the same name for the business partner window.
4) Create a new reference whose parent reference be List (List 1) and assign to the column created in step 2)
5) Create a new field in the [Sales Order] window for the column created in step 1)
6) Create a new field in the [Business Partner] window for the column created in step 2)
7) Ant compile.complete
8) Restart tomcat
9) Go to the [Sales Order] window and notice that new field is showing the correct list of values (List 1)
10) Create a new property field in the [Sales Order] window, which uses the property businessPartner.newColumn
11) Recompile and restart tomcat again
12) Go to the [Sales Order] window and notice that new field is not showing the correct list of values (List 2)
No tags attached.
related to defect 00284383.0PR15Q2 closed alostale Property fields cannot be included in validations 
related to defect 0025701 closed AugustoMauch FIC response causes an error when open in edit view payment details tab 
related to defect 00293733.0PR15Q3 closed caristu Field values can be overwritten by property field values in form view under some circumnstances 
diff test25630.diff (17,764) 2014-02-05 17:19
https://issues.openbravo.com/file_download.php?file_id=6688&type=bug
Issue History
2014-01-31 15:30caristuNew Issue
2014-01-31 15:30caristuAssigned To => AugustoMauch
2014-01-31 15:30caristuModules => Core
2014-01-31 15:30caristuTriggers an Emergency Pack => No
2014-01-31 15:30caristuIssue Monitored: networkb
2014-01-31 15:30caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=5402#r5402
2014-02-05 17:19AugustoMauchFile Added: test25630.diff
2014-02-05 17:19AugustoMauchIssue Monitored: alostale
2014-02-05 17:20AugustoMauchReview Assigned To => alostale
2014-02-05 17:21hgbotCheckin
2014-02-05 17:21hgbotNote Added: 0063938
2014-02-05 17:21hgbotStatusnew => resolved
2014-02-05 17:21hgbotResolutionopen => fixed
2014-02-05 17:21hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/407f2d03251e91488d2a096482ef6d27a7eb6105 [^]
2014-02-05 17:28AugustoMauchNote Added: 0063939
2014-02-11 15:23AugustoMauchRelationship addedrelated to 0025701
2014-02-11 15:26hgbotCheckin
2014-02-11 15:26hgbotNote Added: 0064054
2014-02-12 18:30hudsonbotCheckin
2014-02-12 18:30hudsonbotNote Added: 0064168
2014-02-12 18:30hudsonbotCheckin
2014-02-12 18:30hudsonbotNote Added: 0064185
2014-02-18 08:02alostaleNote Added: 0064308
2014-02-18 08:02alostaleStatusresolved => closed
2014-02-18 08:02alostaleFixed in Version => 3.0MP32
2014-12-17 18:23alostaleRelationship addedrelated to 0028438
2015-04-27 08:42alostaleRelationship addedrelated to 0029373

Notes
(0063938)
hgbot   
2014-02-05 17:21   
Repository: erp/devel/pi
Changeset: 407f2d03251e91488d2a096482ef6d27a7eb6105
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Feb 05 17:19:02 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/407f2d03251e91488d2a096482ef6d27a7eb6105 [^]

Fixes issue 25630: Fixes Column name and inp column name of property fields

The inp column name of the property fields was obtained in the same way as the other standard fields. If a tab had two fields, one being a standard field based
 on a column name i.e. myColumn, and another property field called i.e. businessPartner.myColumn, then when the combos were calculated one of them would be ove
rwritten by the other.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewFieldHandler.java
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/UIDefinition.java
---
(0063939)
AugustoMauch   
2014-02-05 17:28   
Apply attached patch test25630.diff. It adds the following:
- A new column and field (called YesNo) to the Business Partner header tab. The field is a Yes/No/Default list.
- A new column and field (called Week) to the Sales Order header tab. The field is a days of the week list.
- A new property field to the Sales Order header tab, that points to the new business partner list.

The two added columns have the same name.

Test plan:
a) Check that having conflicting names works now
1- Give a value to the field YesNo of a few business partners.
2- Open the sales order tab.
3- Check that the value of the YesNo field is properly shown
4- Check that the filters of the YesNo and Week fields show the proper values.
5- Create a new record, and fill the Week field and save. Check that the YesNo field is properly set.
6- Move to another record, and then selected the record you just created. Check that the values of the YesNo and Week fields are proper.

b) Check that having just one non-conflicting property field keeps working
1- Disable the Week field of the Sales Order header tab.
2- Repeat steps a)2 - a)6
(0064054)
hgbot   
2014-02-11 15:26   
Repository: erp/devel/pi
Changeset: 1b35c705383f01958939afbce8dc6f68167d9887
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Feb 11 15:26:11 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/1b35c705383f01958939afbce8dc6f68167d9887 [^]

Related to issue 25630: Updates copyright year

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
---
(0064168)
hudsonbot   
2014-02-12 18:30   
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/d1a5bb862230 [^]
Maturity status: Test
(0064185)
hudsonbot   
2014-02-12 18:30   
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/d1a5bb862230 [^]
Maturity status: Test
(0064308)
alostale   
2014-02-18 08:02   
Code reviewed + tested