IDEMPIERE-4743- Fixed Shift+Alt+N to save and create in detail (#639)

This commit is contained in:
Diego Ruiz 2021-03-25 20:30:49 +01:00 committed by GitHub
parent 7d1fec61fb
commit da171627ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -329,7 +329,7 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
onNew();
}
});
button.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "New")) + " Shift+Alt+N");
button.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "SaveCreate")) + " Shift+Alt+N");
buttons.put(BTN_NEW_ID.substring(3, BTN_NEW_ID.length()), button);
button = new ToolBarButton();
@ -838,7 +838,7 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
{
insertRecord = adtab.getGridTab().isInsertRecord();
}
boolean enableNew = !changed && insertRecord && !adtab.getGridTab().isSortTab();
boolean enableNew = insertRecord && !adtab.getGridTab().isSortTab();
if (deleteRecord)
{
deleteRecord = adtab.getGridTab().isDeleteRecord();