IDEMPIERE-1673 In new state of record. click to print and export throws exception

This commit is contained in:
Carlos Ruiz 2014-01-08 10:21:57 -05:00
parent 08e42a0149
commit e31bf2c561
1 changed files with 1 additions and 1 deletions

View File

@ -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());