From 43dbf6a05ac83f83f406862823059d1dbd7e455e Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 11 Feb 2021 09:29:38 +0100 Subject: [PATCH] IDEMPIERE-1026 Button on table to create automatically the window (#577) Fix issue creating menu on already created window --- .../src/org/compiere/process/CreateWindowFromTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base.process/src/org/compiere/process/CreateWindowFromTable.java b/org.adempiere.base.process/src/org/compiere/process/CreateWindowFromTable.java index 1da68a2322..d771051763 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CreateWindowFromTable.java +++ b/org.adempiere.base.process/src/org/compiere/process/CreateWindowFromTable.java @@ -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);