Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022645Openbravo ERPA. Platformpublic2012-12-20 13:372013-01-28 14:32
ngarcia 
alostale 
urgentmajoralways
closedfixed 
5
 
3.0MP203.0MP20 
mtaal
Core
No
0022645: A tab without a reference to its parent identifier is not refreshed
A tab without a reference to its parent identifier is not refreshed
An specific example:
Create a new tab for the sales order window
Its associated table should have the C_BPartner_ID column
Add the following sentence to the HQL Where Clause field
   e.businessPartner.id=@Order.businessPartner@
Go to the Sales Order window and select a record
Notice that its child records are not shown until you refresh the tab
No tags attached.
related to feature request 0017522 new Triage Platform Base Information changed in lines tab does not get automatically refreshed while in header does. 
Issue History
2012-12-20 13:37ngarciaNew Issue
2012-12-20 13:37ngarciaAssigned To => AugustoMauch
2012-12-20 13:37ngarciaModules => Core
2012-12-20 13:37ngarciaResolution time => 1358895600
2012-12-20 13:37ngarciaTriggers an Emergency Pack => No
2012-12-20 13:37ngarciaIssue Monitored: networkb
2012-12-20 13:38ngarciaNote Added: 0055117
2013-01-25 14:08alostaleRelationship addedrelated to 0017522
2013-01-25 14:18AugustoMauchAssigned ToAugustoMauch => alostale
2013-01-25 16:05alostaleNote Added: 0055873
2013-01-25 16:06alostaleNote Edited: 0055873bug_revision_view_page.php?bugnote_id=0055873#r4301
2013-01-25 16:06alostaleReview Assigned To => mtaal
2013-01-25 18:57hgbotCheckin
2013-01-25 18:57hgbotNote Added: 0055874
2013-01-25 18:57hgbotStatusnew => resolved
2013-01-25 18:57hgbotResolutionopen => fixed
2013-01-25 18:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c141a066c7d09d1cae7ba6c7fe39ae90dd3cbab7 [^]
2013-01-25 19:00alostaleNote Added: 0055875
2013-01-27 11:34hudsonbotCheckin
2013-01-27 11:34hudsonbotNote Added: 0055885
2013-01-28 14:32mtaalNote Added: 0055910
2013-01-28 14:32mtaalStatusresolved => closed
2013-01-28 14:32mtaalFixed in Version => 3.0MP20

Notes
(0055117)
ngarcia   
2012-12-20 13:38   
I have a module with this tab implemented, so you could ask me for it
(0055873)
alostale   
2013-01-25 16:05   
(edited on: 2013-01-25 16:06)
Steps to reproduce:
* In Sales Order window create a new tab (level 1)
* Table: AD_User
* HQL Where Clause: e.businessPartner.id=@Order.businessPartner@
* Create fields for this new tab
* Go to the Sales Order window and select a record
* Notice that its child records are not shown until you refresh the tab

(0055874)
hgbot   
2013-01-25 18:57   
Repository: erp/devel/pi
Changeset: c141a066c7d09d1cae7ba6c7fe39ae90dd3cbab7
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Jan 25 18:55:48 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/c141a066c7d09d1cae7ba6c7fe39ae90dd3cbab7 [^]

fixed bug 22645: tabs without explicit reference to parent id are not refreshed

The problem was as the subtab was not explicitly setting its parent record (it
was done through where clause), when changing selection in parent an empty
criteria was created preventing request to datasource of being done.

The fix creates for this case a dummy criteria to force request to be triggered.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
(0055875)
alostale   
2013-01-25 19:00   
This fix touches ob-view-grid which is a very central part of the client application, though it should affect only to this very specific case: sub tabs (this.view.parentView exists) without a specific relationship with its parent (there is no this.view.parentProperty), other possible implications should be checked.
(0055885)
hudsonbot   
2013-01-27 11:34   
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/7b271be20db9 [^]

Maturity status: Test
(0055910)
mtaal   
2013-01-28 14:32   
Reviewed