From e31bf2c561278bb74f7f0ee7a512cad68948c6a4 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 8 Jan 2014 10:21:57 -0500 Subject: [PATCH] IDEMPIERE-1673 In new state of record. click to print and export throws exception --- .../org/adempiere/webui/adwindow/AbstractADWindowContent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java index ae1ad5590d..3f87c26d3e 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java @@ -1584,7 +1584,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements adTabbox.evaluate(e); } - toolbar.enablePrint(adTabbox.getSelectedGridTab().isPrinted()); + toolbar.enablePrint(adTabbox.getSelectedGridTab().isPrinted() && !adTabbox.getSelectedGridTab().isNew()); toolbar.enableReport(true); toolbar.enableExport(!adTabbox.getSelectedGridTab().isSortTab()); toolbar.enableFileImport(!changed && !adTabbox.getSelectedGridTab().isSortTab() && adTabbox.getSelectedGridTab().isInsertRecord());