Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025534Openbravo ERPB. User interfacepublic2014-01-22 13:002014-03-16 06:30
jonalegriaesarte 
AugustoMauch 
normalminorhave not tried
closedfixed 
5
 
3.0PR14Q23.0PR14Q2 
shankarb
Core
No
0025534: When grouping enabled is set in sales invoice window, the window is not correctly refreshed after booking an entry
When grouping enabled is set in sales invoice window, the window is not correctly refreshed after booking an entry
- Preferences: enable "Grouping enabled" property
- Sales invoice: group by business partner
- Create a new entry
- In grid view, book it. The action is not refreshing correctly the grid
No tags attached.
related to defect 00259473.0PR14Q2 closed AugustoMauch Grouping is not working properly in the grid 
Issue History
2014-01-22 13:00jonalegriaesarteNew Issue
2014-01-22 13:00jonalegriaesarteAssigned To => AugustoMauch
2014-01-22 13:00jonalegriaesarteModules => Core
2014-01-22 13:00jonalegriaesarteTriggers an Emergency Pack => No
2014-02-24 16:15alostaleAssigned ToAugustoMauch => alostale
2014-02-24 16:32alostaleNote Added: 0064528
2014-02-24 16:33alostaleNote Edited: 0064528bug_revision_view_page.php?bugnote_id=0064528#r5484
2014-03-05 13:01alostaleTarget VersionPR14Q3 => PR14Q2
2014-03-10 18:58AugustoMauchIssue Monitored: shankarb
2014-03-10 18:58AugustoMauchReview Assigned To => shankarb
2014-03-10 18:58AugustoMauchAssigned Toalostale => AugustoMauch
2014-03-10 18:58hgbotCheckin
2014-03-10 18:58hgbotNote Added: 0064997
2014-03-10 18:58hgbotStatusnew => resolved
2014-03-10 18:58hgbotResolutionopen => fixed
2014-03-10 18:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e3c9611f5f63be36fff4878a31d6d5a5665bf142 [^]
2014-03-11 10:20AugustoMauchNote Added: 0065026
2014-03-11 10:20AugustoMauchStatusresolved => new
2014-03-11 10:20AugustoMauchResolutionfixed => open
2014-03-11 11:26AugustoMauchRelationship addedrelated to 0025947
2014-03-11 12:51jonalegriaesarteResolution time => 1396303200
2014-03-11 13:00hgbotCheckin
2014-03-11 13:00hgbotNote Added: 0065041
2014-03-11 16:22hgbotCheckin
2014-03-11 16:22hgbotNote Added: 0065046
2014-03-11 16:22hgbotStatusnew => resolved
2014-03-11 16:22hgbotResolutionopen => fixed
2014-03-11 16:22hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/e3c9611f5f63be36fff4878a31d6d5a5665bf142 [^] => http://code.openbravo.com/erp/devel/pi/rev/7d16e05fa5bdf51375bc2e07e43d616bb20b3a7e [^]
2014-03-11 16:23hgbotCheckin
2014-03-11 16:23hgbotNote Added: 0065047
2014-03-11 17:04hudsonbotCheckin
2014-03-11 17:04hudsonbotNote Added: 0065053
2014-03-12 05:19hudsonbotCheckin
2014-03-12 05:19hudsonbotNote Added: 0065074
2014-03-12 05:19hudsonbotCheckin
2014-03-12 05:19hudsonbotNote Added: 0065076
2014-03-12 05:19hudsonbotCheckin
2014-03-12 05:19hudsonbotNote Added: 0065077
2014-03-16 06:30shankarbNote Added: 0065201
2014-03-16 06:30shankarbStatusresolved => closed
2014-03-16 06:30shankarbFixed in Version => PR14Q2

Notes
(0064528)
alostale   
2014-02-24 16:32   
(edited on: 2014-02-24 16:33)
Two problematic cases found.

1. If the BP the new invoice is created for is unfolded:

This JS error is raisen.

Uncaught TypeError: Object [object Object] has no method 'findByKey' f9907d9ed80a907a7d57d25c843f6246.js:27190
isc.OBViewGrid.addProperties.refreshGrid f9907d9ed80a907a7d57d25c843f6246.js:27190
isc.OBStandardView.addProperties.refresh f9907d9ed80a907a7d57d25c843f6246.js:20860
OB.Utilities.callAction f9907d9ed80a907a7d57d25c843f6246.js:3420
saveCallback f9907d9ed80a907a7d57d25c843f6246.js:18530

problem is in refreshGrid, trying to do this.data.findByKey being data a tree view which doesn't have the method

2. Having the BP folded.

In this case the new record is not properly set in the grid, lines are not properly managed. After saving new header message about no parent selected is still present.

(0064997)
hgbot   
2014-03-10 18:58   
Repository: erp/devel/pi
Changeset: e3c9611f5f63be36fff4878a31d6d5a5665bf142
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Mar 10 18:56:44 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e3c9611f5f63be36fff4878a31d6d5a5665bf142 [^]

Fixes issue 25534: Problem when creating records in grouped grids

When a record was created in a grouped grid, the created record was not included in the grid until it was refreshed manually. Now it is updated automatically,
 its parent record is opened and the created record is scrolled to the middle of the grid.

Also, calling refreshCurrentRecord did not update the grouped grid, and closeProcessPopup did not update it either.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
---
(0065026)
AugustoMauch   
2014-03-11 10:20   
Reopened because the fix does not work with the upgraded version of smartclient
(0065041)
hgbot   
2014-03-11 13:00   
Repository: erp/devel/pi
Changeset: 1bc9b57dcfc1d332128a0894483cdeb7c5a4cda6
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Mar 11 10:21:56 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/1bc9b57dcfc1d332128a0894483cdeb7c5a4cda6 [^]

Related to issue 25534: Fix has been backed out because it is not proper

The fix did not work with the upgraded smartclient version

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
---
(0065046)
hgbot   
2014-03-11 16:22   
Repository: erp/devel/pi
Changeset: 7d16e05fa5bdf51375bc2e07e43d616bb20b3a7e
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Mar 11 16:21:47 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/7d16e05fa5bdf51375bc2e07e43d616bb20b3a7e [^]

Fixes issue 25534: Problem when creating records in grouped grids

When a record was created in a grouped grid, the created record was not included in the grid until it was refreshed manually. Now it is updated automatically,
 its parent record is opened and the created record is scrolled to the middle of the grid.

Also, calling refreshCurrentRecord did not update the grouped grid, and closeProcessPopup did not update it either.

Fix reapplied after fixing 25947

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
---
(0065047)
hgbot   
2014-03-11 16:23   
Repository: erp/devel/pi
Changeset: fe3e47544cdaccc5785b903e5174e328e79e4f28
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Mar 11 16:23:16 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/fe3e47544cdaccc5785b903e5174e328e79e4f28 [^]

Related to issue 25534: Adds check in case the grid data is not a tree

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
(0065053)
hudsonbot   
2014-03-11 17:04   
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/0d35a09c7eb8 [^]
Maturity status: Test
(0065074)
hudsonbot   
2014-03-12 05:19   
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/82d89b03cb26 [^]
Maturity status: Test
(0065076)
hudsonbot   
2014-03-12 05:19   
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/82d89b03cb26 [^]
Maturity status: Test
(0065077)
hudsonbot   
2014-03-12 05:19   
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/82d89b03cb26 [^]
Maturity status: Test
(0065201)
shankarb   
2014-03-16 06:30   
Code reviewed and verified in pi changeset 09baf685138e.