Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021306Openbravo ERPA. Platformpublic2012-08-03 13:022012-08-29 17:02
ngarcia 
alostale 
urgentmajoralways
closedfixed 
5
pi 
3.0MP153.0MP15 
Core
No
0021306: A record can be deleted with the Supr button in grid view when the UIPattern of the tab is "Edit Only (No Insert nor Delete)"
A record can be deleted with the Supr button in grid view when the UIPattern of the tab is "Edit Only (No Insert nor Delete)"
As group admin role:
   Create a purchase invoice and complete it
   Go to the Payment Plan tab
   Notice that when selecting the record the "Trash" button of the toolbar is disabled but you can delete it with the Supr button of the keyboard
No tags attached.
Issue History
2012-08-03 13:02ngarciaNew Issue
2012-08-03 13:02ngarciaAssigned To => alostale
2012-08-03 13:02ngarciaModules => Core
2012-08-03 13:02ngarciaResolution time => 1346796000
2012-08-03 13:03ngarciaIssue Monitored: networkb
2012-08-06 14:22jonalegriaesarteTarget Version => 3.0MP15
2012-08-07 13:33RafaelCruzIssue Monitored: RafaelCruz
2012-08-08 08:59hgbotCheckin
2012-08-08 08:59hgbotNote Added: 0051158
2012-08-08 08:59hgbotStatusnew => resolved
2012-08-08 08:59hgbotResolutionopen => fixed
2012-08-08 08:59hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/562813057ec35d5138dcaedbe92e08b16126b1a0 [^]
2012-08-29 17:02marvintmStatusresolved => closed
2012-08-29 17:02marvintmFixed in Version => 3.0MP15

Notes
(0051158)
hgbot   
2012-08-08 08:59   
Repository: erp/devel/pi
Changeset: 562813057ec35d5138dcaedbe92e08b16126b1a0
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Aug 08 08:57:23 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/562813057ec35d5138dcaedbe92e08b16126b1a0 [^]

Fixes issue 21306: Delete record shortcut improved

So far, the only check done when deleting a record with the shortcut Supr was to count the number of selected records, and not to check if the tab is read only, is the table is deleteable, etc.

Now, before deleting a record with the shortcut, the status of the delete button (where the logic to see if the removal of records is anabled) is checked. If the delete button is not enabled, it will not be possible to delete the record with the shortcut.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---