IDEMPIERE-2350 Run process as a background job

This commit is contained in:
Carlos Ruiz 2014-12-03 08:37:20 -05:00
parent 899c60b041
commit b0579e009c
1 changed files with 1 additions and 3 deletions

View File

@ -216,9 +216,7 @@ public abstract class AbstractProcessDialog extends Window implements IProcessUI
return true; return true;
} }
MProcess process = new MProcess(m_ctx, m_AD_Process_ID, null); if (MSysConfig.getBooleanValue(MSysConfig.BACKGROUND_JOB_ALLOWED, false))
boolean isReport = (process.isReport() || process.getAD_ReportView_ID() > 0);
if (isReport && MSysConfig.getBooleanValue(MSysConfig.BACKGROUND_JOB_ALLOWED, false))
{ {
Grid grid = GridFactory.newGridLayout(); Grid grid = GridFactory.newGridLayout();
centerPanel.appendChild(grid); centerPanel.appendChild(grid);