Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021728Openbravo ERPB. User interfacepublic2012-09-24 14:092012-10-11 18:42
plujan 
dbaz 
normalminorhave not tried
closedfixed 
5
main 
3.0MP17 
AugustoMauch
Apple Safari, Google Chrome
Core
No
0021728: Focus "splits" in completed invoices
When navigating from child to parent row, if parent row is a completed invoice, the focus (color orange in borders) change to the header, but is still possible to move and edit the lines using keyboard.
Note: issue "real" steps start on step 6, the previous ones are data preparation.

1. Login as Openbravo
2. Go to Sales Invoice window
3. Create a new record for "Alimentos y Supermercados" partner and save it.
4. Create 3 lines for this header
5. Complete the Invoice
6. Open the invoice in Form view. All the fields but "Description" are disabled.
7. Use Alt+DownArrow to go to child tabs (that are in grid vew)
8. Press Esc to move focus to Lines' grid and hit Down arrow twice to get positioned in the second record,
9. Use Alt+UpArrow to return to parent tab. Orange side bar and header's top orange bar show focus has been moved to header. However, if you use Arrow Up and Down keys, you can still move the Lines' grid.
No tags attached.
diff fix.diff (1,384) 2012-10-01 17:09
https://issues.openbravo.com/file_download.php?file_id=5617&type=bug
Issue History
2012-09-24 14:09plujanNew Issue
2012-09-24 14:09plujanAssigned To => dbaz
2012-09-24 14:09plujanWeb browser => Apple Safari, Google Chrome
2012-09-24 14:09plujanModules => Core
2012-10-01 17:09dbazReview Assigned To => AugustoMauch
2012-10-01 17:09dbazWeb browserApple Safari, Google Chrome => Apple Safari, Google Chrome
2012-10-01 17:09dbazIssue Monitored: AugustoMauch
2012-10-01 17:09dbazFile Added: fix.diff
2012-10-01 17:10dbazNote Added: 0052968
2012-10-01 17:13dbazNote Edited: 0052968bug_revision_view_page.php?bugnote_id=0052968#r3920
2012-10-02 09:39AugustoMauchStatusnew => scheduled
2012-10-02 09:39AugustoMauchfix_in_branch => pi
2012-10-04 20:19hgbotCheckin
2012-10-04 20:19hgbotNote Added: 0053059
2012-10-04 20:19hgbotStatusscheduled => resolved
2012-10-04 20:19hgbotResolutionopen => fixed
2012-10-04 20:19hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9b7cc13eaec95832971341318b7e2f93512cbf22 [^]
2012-10-11 07:50hudsonbotCheckin
2012-10-11 07:50hudsonbotNote Added: 0053239
2012-10-11 18:42AugustoMauchNote Added: 0053325
2012-10-11 18:42AugustoMauchStatusresolved => closed
2012-10-11 18:42AugustoMauchFixed in Version => 3.0MP17

Notes
(0052968)
dbaz   
2012-10-01 17:10   
(edited on: 2012-10-01 17:13)
Added "fix.diff" with the proposed fix.

The problem was that Smartclient returns as
this.viewForm.getFocusItem
the first input of the form, and sometimes is not focusable.

Now the logic is:
* Check if last focused element can still be focused, if it is the case, focus it and done
* Check if this.viewForm.getFocusItem is focusable, if it is the case, focus it and done
* Iterate in all form items and focus the first one that can be focusable.

(0053059)
hgbot   
2012-10-04 20:19   
Repository: erp/devel/pi
Changeset: 9b7cc13eaec95832971341318b7e2f93512cbf22
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Thu Oct 04 20:15:29 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/9b7cc13eaec95832971341318b7e2f93512cbf22 [^]

Fixed issue 21728: Now when going back to child/parent tab, the focus remains in the same previous place

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---
(0053239)
hudsonbot   
2012-10-11 07:50   
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/63dfc135f2a1 [^]

Maturity status: Test
(0053325)
AugustoMauch   
2012-10-11 18:42   
Code reviewed and verified in pi@ae79cd15bab6