IDEMPIERE-1026 Button on table to create automatically the window (#577)
Fix issue creating menu on already created window
This commit is contained in:
parent
92195c08a4
commit
43dbf6a05a
|
@ -211,7 +211,7 @@ public class CreateWindowFromTable extends SvrProcess
|
||||||
throw new AdempiereException(processInfo.getSummary());
|
throw new AdempiereException(processInfo.getSummary());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p_isCreateMenu) {
|
if (p_isCreateMenu && p_isNewWindow) {
|
||||||
MMenu menu = new MMenu(getCtx(), 0, get_TrxName());
|
MMenu menu = new MMenu(getCtx(), 0, get_TrxName());
|
||||||
menu.setName(window.getName());
|
menu.setName(window.getName());
|
||||||
menu.setEntityType(entityType);
|
menu.setEntityType(entityType);
|
||||||
|
|
Loading…
Reference in New Issue