Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020386Openbravo ERPA. Platformpublic2012-05-02 10:372012-08-24 15:41
jecharri 
AugustoMauch 
highminoralways
closedfixed 
5
pi 
3.0MP153.0MP15 
marvintm
Google Chrome
Core
No
0020386: Filter by Financial Account it does not work in grid view
Filter by Financial Account it does not work in grid view
As "Group Admin" go to window "Busines Partner":
-select "Alimentos y Supermercados, S.A" busines partner.
-go to tab "Customer"
-see that the related "Financial Account" is "Cuenta de Banco"
-Now, in grid view, write in column "Financial account" --> C

You will see that the grid is empty ("The applied filter resulted in 0 results.Clear Filter(s)")
RiskyFix
depends on defect 0020449 closed alostale Error when navigating to a Template record 
related to defect 0019717 closed AugustoMauch Issue filtering Financial Accounts in Payment In Window. 
diff issue20386.diff (6,419) 2012-06-21 16:18
https://issues.openbravo.com/file_download.php?file_id=5319&type=bug
Issue History
2012-05-02 10:37jecharriNew Issue
2012-05-02 10:37jecharriAssigned To => alostale
2012-05-02 10:37jecharriWeb browser => Google Chrome
2012-05-02 10:37jecharriModules => Core
2012-05-02 10:37jecharriResolution time => 1343080800
2012-05-08 13:00alostaleNote Added: 0048441
2012-05-08 13:02hgbotCheckin
2012-05-08 13:02hgbotNote Added: 0048442
2012-05-08 13:02hgbotStatusnew => resolved
2012-05-08 13:02hgbotResolutionopen => fixed
2012-05-08 13:02hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/4642910e52d10d372640573eee7fc1cf2356e38f [^]
2012-05-09 10:41alostaleRelationship addeddepends on 0020449
2012-05-09 10:43hgbotCheckin
2012-05-09 10:43hgbotNote Added: 0048493
2012-05-09 10:44alostaleStatusresolved => new
2012-05-09 10:44alostaleResolutionfixed => open
2012-05-25 12:10hudsonbotCheckin
2012-05-25 12:10hudsonbotNote Added: 0049048
2012-05-25 12:11hudsonbotCheckin
2012-05-25 12:11hudsonbotNote Added: 0049077
2012-06-04 14:06alostaleRelationship addedrelated to 0019717
2012-06-15 12:48AugustoMauchAssigned Toalostale => AugustoMauch
2012-06-21 16:18AugustoMauchFile Added: issue20386.diff
2012-06-21 16:35AugustoMauchNote Added: 0049994
2012-06-22 09:22alostaleTag Attached: RiskyFix
2012-06-22 09:23alostaleWeb browserGoogle Chrome => Google Chrome
2012-06-22 09:23alostaleTarget Version3.0MP13 => 3.0MP15
2012-06-22 09:23alostaleNote Added: 0050017
2012-06-22 10:07jecharriWeb browserGoogle Chrome => Google Chrome
2012-06-22 10:07jecharriResolution time1343080800 => 1347919200
2012-07-25 12:46jonalegriaesarteWeb browserGoogle Chrome => Google Chrome
2012-07-25 12:46jonalegriaesarteNote Added: 0050829
2012-07-25 12:46jonalegriaesarteTypedefect => design defect
2012-08-06 09:10hgbotCheckin
2012-08-06 09:10hgbotNote Added: 0051106
2012-08-06 09:11hgbotStatusnew => resolved
2012-08-06 09:11hgbotResolutionopen => fixed
2012-08-06 09:11hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/4642910e52d10d372640573eee7fc1cf2356e38f [^] => http://code.openbravo.com/erp/devel/pi/rev/87caa2784ab49fa584c64c8c4e44055055b69816 [^]
2012-08-14 14:17AugustoMauchNote Added: 0051283
2012-08-14 14:17AugustoMauchStatusresolved => new
2012-08-14 14:17AugustoMauchResolutionfixed => open
2012-08-14 14:17AugustoMauchClosed by => marvintm
2012-08-14 14:17AugustoMauchWeb browserGoogle Chrome => Google Chrome
2012-08-14 14:18AugustoMauchStatusnew => scheduled
2012-08-14 14:18AugustoMauchfix_in_branch => pi
2012-08-14 14:18AugustoMauchStatusscheduled => resolved
2012-08-14 14:18AugustoMauchResolutionopen => fixed
2012-08-24 15:41marvintmStatusresolved => closed
2012-08-24 15:41marvintmFixed in Version => 3.0MP15

Notes
(0048441)
alostale   
2012-05-08 13:00   
This can be reproduced in case of Table reference where the referenced table's identifier's first field is a FK. It is incorrectly computing the property to filter in this case because it should use the column defined in the Table reference.

This fix modifies a very central component of OB which is json service in charge of filtering, though the risk is low.

Test plan:
-Check what is defined in the steps to reproduce
-Do additional testing filtering different types of fields
(0048442)
hgbot   
2012-05-08 13:02   
Repository: erp/devel/pi
Changeset: 4642910e52d10d372640573eee7fc1cf2356e38f
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue May 08 13:02:27 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/4642910e52d10d372640573eee7fc1cf2356e38f [^]

fixed issue 20386: Incorrect filter of table references in some circumstances

  Table reference property to use in filter was incorrectly computed as it took
  the first field in the identifier of the referenced table instead of the
  displayed field as it should.

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/JsonUtils.java
---
(0048493)
hgbot   
2012-05-09 10:43   
Repository: erp/devel/pi
Changeset: 1582d1dc7250976053698019f0fd68481743ed2b
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed May 09 10:43:24 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/1582d1dc7250976053698019f0fd68481743ed2b [^]

fixed bug 20449, related to bug 20386

Revert original fix for 0020386 as it causes 0020449

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/JsonUtils.java
---
(0049048)
hudsonbot   
2012-05-25 12:10   
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/5401e185a8b0 [^]

Maturity status: Test
(0049077)
hudsonbot   
2012-05-25 12:11   
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/5401e185a8b0 [^]

Maturity status: Test
(0049994)
AugustoMauch   
2012-06-21 16:35   
A fix for this issue has been attached. It will not been pushed to pi until it has been tested further, because it might be risky
(0050017)
alostale   
2012-06-22 09:23   
Updated target version to mp15 as the fix is risky
(0050829)
jonalegriaesarte   
2012-07-25 12:46   
Changed to design defect because it is a risky change and needs to be tested in depth. In any case, it will be included in MP15
(0051106)
hgbot   
2012-08-06 09:10   
Repository: erp/devel/pi
Changeset: 87caa2784ab49fa584c64c8c4e44055055b69816
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Aug 06 09:08:58 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/87caa2784ab49fa584c64c8c4e44055055b69816 [^]

Fixes issue 20386: Filtering fields with multiple identifier now works

Prior to this fix, if a field identifier was composed by the concatenation of several fields and if its reference was Table, in certain conditions it was not possible to use this field in the filter. This happened because in the server the field used to filter was the first one used in the identifier, when the filter should have been done on the displayed field.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/FKComboUIDefinition.java
---
(0051283)
AugustoMauch   
2012-08-14 14:17   
Issue reopened to enter Closed by field