diff --git a/migration/i8.2z/oracle/202102201441_IDEMPIERE-4709.sql b/migration/i8.2/oracle/202102201441_IDEMPIERE-4709.sql
similarity index 94%
rename from migration/i8.2z/oracle/202102201441_IDEMPIERE-4709.sql
rename to migration/i8.2/oracle/202102201441_IDEMPIERE-4709.sql
index f195930dde..a6f9287dd4 100644
--- a/migration/i8.2z/oracle/202102201441_IDEMPIERE-4709.sql
+++ b/migration/i8.2/oracle/202102201441_IDEMPIERE-4709.sql
@@ -21,10 +21,6 @@ INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,I
UPDATE AD_Field SET DisplayLogic='@PrintFormatType@=''S''', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2021-02-20 13:51:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206598
;
--- Feb 20, 2021, 1:52:53 PM BRT
-UPDATE AD_Field SET AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, ReadOnlyLogic='@PrintFormatType@=''S''', IsToolbarButton=NULL,Updated=TO_DATE('2021-02-20 13:52:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5668
-;
-
-- Feb 20, 2021, 1:58:50 PM BRT
UPDATE AD_Field SET DisplayLogic='@PrintFormatType@=F | @PrintFormatType@=S', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2021-02-20 13:58:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56373
;
@@ -37,8 +33,9 @@ UPDATE AD_Field SET DisplayLogic='@PrintFormatType@=S', AD_Reference_Value_ID=NU
UPDATE AD_Field SET AD_FieldGroup_ID=200015, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2021-02-20 14:00:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206598
;
-
-
+-- Apr 22, 2021, 8:05:02 PM CEST
+UPDATE AD_Field SET AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, ReadOnlyLogic='@#ShowAdvanced@=N', IsToolbarButton=NULL,Updated=TO_DATE('2021-04-22 20:05:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206598
+;
SELECT register_migration_script('202102201441_IDEMPIERE-4709.sql') FROM dual
;
diff --git a/migration/i8.2z/postgresql/202102201441_IDEMPIERE-4709.sql b/migration/i8.2/postgresql/202102201441_IDEMPIERE-4709.sql
similarity index 94%
rename from migration/i8.2z/postgresql/202102201441_IDEMPIERE-4709.sql
rename to migration/i8.2/postgresql/202102201441_IDEMPIERE-4709.sql
index 04cee79657..917fb0c300 100644
--- a/migration/i8.2z/postgresql/202102201441_IDEMPIERE-4709.sql
+++ b/migration/i8.2/postgresql/202102201441_IDEMPIERE-4709.sql
@@ -18,10 +18,6 @@ INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,I
UPDATE AD_Field SET DisplayLogic='@PrintFormatType@=''S''', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2021-02-20 13:51:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206598
;
--- Feb 20, 2021, 1:52:53 PM BRT
-UPDATE AD_Field SET AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, ReadOnlyLogic='@PrintFormatType@=''S''', IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2021-02-20 13:52:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5668
-;
-
-- Feb 20, 2021, 1:58:50 PM BRT
UPDATE AD_Field SET DisplayLogic='@PrintFormatType@=F | @PrintFormatType@=S', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2021-02-20 13:58:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56373
;
@@ -34,7 +30,9 @@ UPDATE AD_Field SET DisplayLogic='@PrintFormatType@=S', AD_Reference_Value_ID=NU
UPDATE AD_Field SET AD_FieldGroup_ID=200015, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2021-02-20 14:00:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206598
;
-
+-- Apr 22, 2021, 8:05:02 PM CEST
+UPDATE AD_Field SET AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, ReadOnlyLogic='@#ShowAdvanced@=N', IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2021-04-22 20:05:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206598
+;
SELECT register_migration_script('202102201441_IDEMPIERE-4709.sql') FROM dual
;
diff --git a/org.adempiere.base/plugin.xml b/org.adempiere.base/plugin.xml
index 3a0ebf1ab9..91943b4fc5 100644
--- a/org.adempiere.base/plugin.xml
+++ b/org.adempiere.base/plugin.xml
@@ -94,17 +94,6 @@
tableName="AD_InfoColumn">
-
-
-
-
-
0 && token.endsWith(">")) {
- token = token.substring(0, f);
- }
-
if (token.startsWith("ACCUMULATE/")) {
token = token.replace("ACCUMULATE/", "");
diff --git a/org.adempiere.base/src/org/compiere/print/MPrintFormatItem.java b/org.adempiere.base/src/org/compiere/print/MPrintFormatItem.java
index 5f31a30c8d..1467f40031 100644
--- a/org.adempiere.base/src/org/compiere/print/MPrintFormatItem.java
+++ b/org.adempiere.base/src/org/compiere/print/MPrintFormatItem.java
@@ -737,8 +737,9 @@ public class MPrintFormatItem extends X_AD_PrintFormatItem implements ImmutableP
setScript(null);
}
- if(!Util.isEmpty(getScript()) && is_ValueChanged(MPrintFormatItem.COLUMNNAME_Script)
- && getScript().contains("@SQL") && !MRole.getDefault().isAccessAdvanced()) {
+ if( !Util.isEmpty(getScript())
+ && is_ValueChanged(MPrintFormatItem.COLUMNNAME_Script)
+ && !MRole.getDefault().isAccessAdvanced()) {
log.saveError("Error", Msg.getMsg(getCtx(), "ActionNotAllowedHere"));
return false;
}