IDEMPIERE-1026 Button on table to create automatically the window (#577)

Fix issue creating menu on already created window
This commit is contained in:
Carlos Ruiz 2021-02-11 09:29:38 +01:00 committed by GitHub
parent 92195c08a4
commit 43dbf6a05a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ public class CreateWindowFromTable extends SvrProcess
throw new AdempiereException(processInfo.getSummary());
}
if (p_isCreateMenu) {
if (p_isCreateMenu && p_isNewWindow) {
MMenu menu = new MMenu(getCtx(), 0, get_TrxName());
menu.setName(window.getName());
menu.setEntityType(entityType);