IDEMPIERE-4742 Delete button on detail tab is not disabled for processed records (#636)

This commit is contained in:
Carlos Ruiz 2021-03-29 15:23:52 +02:00 committed by GitHub
parent 0fb7bc9a35
commit 44edbf4b07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -843,7 +843,7 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
{ {
deleteRecord = adtab.getGridTab().isDeleteRecord(); deleteRecord = adtab.getGridTab().isDeleteRecord();
} }
boolean enableDelete = !changed && deleteRecord && !adtab.getGridTab().isSortTab(); boolean enableDelete = !changed && deleteRecord && !adtab.getGridTab().isSortTab() && !adtab.getGridTab().isProcessed();
boolean enableCustomize = !adtab.getGridTab().isSortTab() && adtab.isGridView(); boolean enableCustomize = !adtab.getGridTab().isSortTab() && adtab.isGridView();
ADWindow adwindow = ADWindow.findADWindow(this); ADWindow adwindow = ADWindow.findADWindow(this);