Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020229Openbravo ERPA. Platformpublic2012-04-10 16:582012-05-25 12:09
psarobe 
AugustoMauch 
urgentmajoralways
closedfixed 
5
pi 
3.0MP12 
Core
No
0020229: Combo product selector in grid mode is not working properly
To see how annoying is, you must use the keyboard.

To display the combo: ALT+Arrow down
To move through the records (inside the combo): Arrow down
1. Go to sales invoice
2. Click new and fill the mandatory fields
3. Move to Lines and click new in grid mode
4. The focus will be in product field. Click ALT+Arrow down
5. The combo will be displayed. Ale Beer will be selected (first choice). Press enter. The focus will move to Invoiced quantity field. Press enter
6. New line appears. Click ALT+Arrow down. Move down (Arrow down) and select Apple juice. Press enter. The focus will move to Invoiced quantity field. Press enter
7. New line appears. Click ALT+Arrow down. Notice that the focus is in Apple Juice and suddenly changes to the first option (Ale Beer). Move down (Arrow down) and and notice the focus is not in the first option (Ale beer) but in Apple juice.

This behaviour is wrong!!

Expected Behaviour: The focus, whenever you open the combo, must be in the first option
No tags attached.
Issue History
2012-04-10 16:58psarobeNew Issue
2012-04-10 16:58psarobeAssigned To => alostale
2012-04-10 16:58psarobeModules => Core
2012-04-26 15:18alostaleAssigned Toalostale => AugustoMauch
2012-05-03 11:26hgbotCheckin
2012-05-03 11:26hgbotNote Added: 0048309
2012-05-03 11:26hgbotStatusnew => resolved
2012-05-03 11:26hgbotResolutionopen => fixed
2012-05-03 11:26hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/080a243f3f166008dad8a4e7bc44984623078a4f [^]
2012-05-03 11:27AugustoMauchNote Added: 0048310
2012-05-03 11:30AugustoMauchNote Added: 0048311
2012-05-03 11:30AugustoMauchNote Added: 0048312
2012-05-21 00:53dbazNote Added: 0048788
2012-05-21 00:53dbazStatusresolved => closed
2012-05-21 00:53dbazFixed in Version => 3.0MP12
2012-05-25 12:09hudsonbotCheckin
2012-05-25 12:09hudsonbotNote Added: 0048997

Notes
(0048309)
hgbot   
2012-05-03 11:26   
Repository: erp/devel/pi
Changeset: 080a243f3f166008dad8a4e7bc44984623078a4f
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu May 03 11:15:09 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/080a243f3f166008dad8a4e7bc44984623078a4f [^]

Fixes issue 20229: Combo product selector in grid mode is not working properly

The problem was caused because the same combo is shared among all the records, and it was not being properly reset when a new row was created. Now, when a new row is created, the previous highlighted combo option is cleared and the first option is selected.

---
M modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js
---
(0048310)
AugustoMauch   
2012-05-03 11:27   
This issue was reproducible in all combo selectors, and both in grid and form view.
(0048311)
AugustoMauch   
2012-05-03 11:30   
-- Test plan --

Test that the combos are properly reset when a new row is created:
- Follow the steps to reproduce section.

Test that when the combo of an already existing record is opened it is propertly set.
(0048312)
AugustoMauch   
2012-05-03 11:30   
This fix is not risky
(0048788)
dbaz   
2012-05-21 00:53   
Reviewed @ changeset 16586 - 87340d8f38a3
(0048997)
hudsonbot   
2012-05-25 12:09   
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